main()
{int x,y,z;
x=y=z=;
++x||++y& & ++z;
printf("x=%d\ty=%d\tz=%d\n",x,y,x);
getch();
}
The result is the same as what they said.
++x (that is, x = x=x+1) is calculated first and then used. X increases its value to one, followed by the OR operator. When the front value is one, the back operation is not performed
but the back:
printf ("x =% d \ ty =% d \ tz =% d \.
// is x,y,x?
another note: if it is:
x++|| y++&; & The output result of z++
is:
x=1 y=1 z=
= =!