|
Related Questions |
View Answer |
|
38) #define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
37) main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
|
}
View Answer
|
|
36) #include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
|
View Answer
|
|
35) void main() { int i=5; printf("%d",i+++++i); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
34) void main() { int i=5; printf("%d",i++ + ++i); }
|
} - JCL Interview Questions & Answers">
View Answer
|
|
33) main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); }
|
- JCL Interview Questions & Answers">
View Answer
|
|
32) main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }
|
- JCL Interview Questions & Answers">
View Answer
|
|
31) main() { char *p; p="Hello"; printf("%c
",*&*p); }
|
printf("%c
",*&*p); } - JCL Interview Questions & Answers">
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
|