|
Question |
Rating |
View Answer |
 |
34) void main() { int i=5; printf("%d",i++ + ++i); }
|
|
View Answer |
 |
main() { main(); }
|
|
View Answer |
 |
What could be the disposition parameter that i would have to use in the jcl if i have a file that has to be created newly for every successful run of the program ,but at the same time it should retain the old data if my program abend in the middle and restarts. could you please provide me the code
|
|
View Answer |
 |
How do you access a file that had a disposition of KEEP? |
|
View Answer |
 |
Describe the DD statement, its meaning, syntax and keywords |
|
View Answer |
 |
What do you do if you do not want to keep all the space allocated to a dataset? |
|
View Answer |
 |
63) main() { char not; not=!2; printf("%d",not); }
|
|
View Answer |
 |
80) main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }
|
|
View Answer |
 |
53) main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i<n; ++i) { printf(“%s
”,x); x++; } }
|
|
View Answer |
 |
44) main() { printf("%d", out); } int out=100;
|
|
View Answer |
 |
How do you overcome this limitation ? |
|
View Answer |
 |
25. main() { printf("%p",main); }
|
|
View Answer |
 |
76) struct aaa{ struct aaa *prev; int i; struct aaa *next; }; main() { struct aaa abc,def,ghi,jkl; int x=100; abc.i=0;abc.prev=&jkl; abc.next=&def; def.i=1;def.prev=&abc;def.next=&ghi; ghi.i=2;ghi.prev=&def; ghi.next=&jkl; jkl.i=3;jkl.prev=&ghi;jkl.next=&abc; x=abc.next->next->prev->next->i; printf("%d",x); }
|
|
View Answer |
 |
17. #include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }
|
|
View Answer |
 |
How can I get the number of records of a sequential file without browsing it?
|
|
View Answer |
 |
What is the meaning of keyword in JCL? What is its opposite?
|
|
View Answer |
 |
96) void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
|
|
View Answer |
 |
7. main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }
|
|
View Answer |
 |
What is the DD statement for a output file? |
|
View Answer |
 |
46) main() { show(); } void show() { printf("I'm the greatest"); }
|
|
View Answer |