z=(++x)+(--x)+(x++)+(--y)+(y++)+(--y);
cout<<z;
Why is the output of this 35 ?
Please tell me... when I evaluate like this, i get 37. where am I going wrong :
z=5+4+4+8+8+8
=37
The Visual C++ compiler gives this as 35
and BCC gives 33
Please tell me what is the correct order to evaluate when this question is asked in my exams
更新1:
omg talon ure such an idiot
更新2:
Dav, dude I have evaluated according to your method only man, but the compiler has different ways, I wanna know how does the compiler do it ??