Hello I have this simple example:
int x = 5;
int y = ++x + ++x;
Is it well-defined or undefined behavior?
Because I see that y will hold 7 + 6 or 6 + 7 and it is the same result.
Hello I have this simple example:
int x = 5;
int y = ++x + ++x;
Is it well-defined or undefined behavior?
Because I see that y will hold 7 + 6 or 6 + 7 and it is the same result.