Hi Please help to understand this out put of this
int x=10;
x=++x+ + +x+x++; // i counted the output as 35. But correct out put 33. Pls help to understand.
This is how i counted.
++x uses incremented value. So first ++x = 11
next ++x increment x again. so second ++x = 12
next x++ uses the current value in the memory. so uses 12. 11 + 12 + 12 = 35
Thank you