R
rayw
int x,y,z;
x=y=z=1;
z=++x||++y && ++z;
My understanding is that the order of things here are:
++x = x = 2
As x is 'true', the ++y doesn't operate
To evaluate &&, ++z operates, setting z to 2.
true && true, and that assigns 1 to z.
Is this right please?
x=y=z=1;
z=++x||++y && ++z;
My understanding is that the order of things here are:
++x = x = 2
As x is 'true', the ++y doesn't operate
To evaluate &&, ++z operates, setting z to 2.
true && true, and that assigns 1 to z.
Is this right please?