Home > C Programming > Operators > Questions and Answers
01. |
What will the output of following C code? main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } | |||||||||||
|
02. |
What will the output of following C code? main() { int i=5,j=6,z; printf("%d",i+++j); } | |||||||||||
|
03. |
What will the output of following C code? main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); } | |||||||||||
|
04. |
What will the output of following C code? main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); } | |||||||||||
|
05. |
What will the output of following C code? void main() { int i=i++,j=j++,k=k++; printf(“%d%d%dâ€,i,j,k); } | |||||||||||
|
06. |
What will the output of following C code? void main() { static int i=i++, j=j++, k=k++; printf(“i = %d j = %d k = %dâ€, i, j, k); } | |||||||||||
|
07. |
What will the output of following C code? main() { unsigned int i=65000; while(i++!=0); printf("%d",i); } | |||||||||||
|
08. |
What will the output of following C code? main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); } | |||||||||||
|
09. |
What will the output of following C code? main() { int i=5; printf("%d",++i++); } | |||||||||||
|
10. |
What will the output of following C code? main() { int i=5; printf(“%dâ€,i=++i ==6); } | |||||||||||
|