|
Related Questions |
View Answer |
|
30) main() { int i=400,j=300; printf("%d..%d"); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
29) void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }
|
View Answer
|
|
28) enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }
|
View Answer
|
|
main() { clrscr(); } clrscr();
|
View Answer
|
|
25. main() { printf("%p",main); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
24. #define clrscr() 100 main() { clrscr(); printf("%d
",clrscr()); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
24. #define clrscr() 100 main() { clrscr(); printf("%d
",clrscr()); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
23. #include <stdio.h> #define a 10 main() { #define a 50 printf("%d",a); }
|
}< - JCL Interview Questions & Answers">
View Answer
|
|
22. main() { char *p="hai friends",*p1; p1=p; while(*p!='
|
p1=p; while(*p!=' - JCL Interview Questions & Answers">
View Answer
|
|
21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
19. main() { printf("
ab"); printf("si"); printf("
ha"); }
|
printf("si"); printf("
ha"); } - JCL Interview Questions & Answers">
View Answer
|
|
18. #include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }
|
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
|
|
16. #include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); }
|
View Answer
|
|
15. #include<stdio.h> main() { char s[]={'a','b','c','
','c','
|
View Answer
|
|
14. main() { int i=10; i=!i>14; Printf ("i=%d",i); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
12. main() { int c=- -2; printf("c=%d",c); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
11. main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }
|
display(string); } void displa - JCL Interview Questions & Answers">
View Answer
|
|
10. main() { printf("%x",-1<<4); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
9. main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }
|
case 1: pri - JCL Interview Questions & Answers">
View Answer
|