I have a simple and short question that I just cant find an answer for.
If I code
and then output each variable....shouldCode:int x = 1; int y = 2; int z = 3; if (x == y--) z+=3;
1. y be decremented and print out as "1"
2. the statement after the if statement be executed
I ask because in my program, y does decrement (which seems weird to me because I feel like the condition is only check), and because the z variable is not increased. However I think this is because x is checked against y before it is decremented.
Clarification would be great, thanks!