I get stuck in the last expression,
shouldn't the calculation step for int z = x-- + 2*x
be: int z = (9) + 2(9)= 27
?
However, when I try to run it, the assignment to int z turns out to be 25, why?
Below is the expressions:
int x = 10;
int y = --x + x;
int z = x-- + 2*x;
And the result is:
[1] x = 10
[2] x = 9; y = 18
[3] x = 8; z = 25