Hi,
I have the following code snippet:
And the output is :Code:#include<stdio.h> int main() { int x,y,z; x=y=z=1; z= ++x||++y&&++z; printf("x=%d y=%d z=%d\n", x,y,z); return 0; }
x=2 y=1 z=1
I cannot understand why y is 1, even if it is pre incremented?
Can any one help?