why is printf("%d %d %d",i++,--i,i--);
Answers were Sorted based on User's Feedback
Answer / rick g
if: i = (-1)
-1, -1, -1
(1) Print '-1', then post-increment i. i is now 0.
(2) Pre-decrement i. i is now back to -1. Print '-1'
(3) Print '-1', then post-decrement i. i is now -2
| Is This Answer Correct ? | 2 Yes | 0 No |
main() { extern i; printf("%d\n",i); { int i=20; printf("%d\n",i); } }
Is the following code legal? struct a { int x; struct a *b; }
main() { main(); }
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??
main() { int i=5; printf(“%d”,i=++i ==6); }
4. Main() { Int i=3,j=2,c=0,m; m=i&&j||c&I; printf(“%d%d%d%d”,I,j,c,m); }
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
why java is platform independent?
why is printf("%d %d %d",i++,--i,i--);
main() { printf("%d", out); } int out=100;
main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”