I just noticed something a bit strange at the bottom of this page:
http://www.cppreference.com/operator_precedence.html
For this code:
It says:Code:float x = 1;
x = x / ++x;
But the ++ pre-increment operator is 2 levels above the / division operator, so I don't see why there would be any confusion about what to do first?Quote:
The value of x is not guaranteed to be consistent across different compilers, because it is not clear whether the computer should evaluate the left or the right side of the division first. Depending on which side is evaluated first, x could take a different value.
Is that page incorrect? If not, how can it be true?