Is (++x > ++x) well-defined in c++?

125 Views Asked by At

I read a bit about undefined behavior regarding side-effects and sequence points and their replacement in C++11. (Undefined behavior and sequence points)

It raised the following question. Does this code have defined behavior?

int x = 0;
bool result = ++x > ++x;

Does it matter which C++ standard is used?

0

There are 0 best solutions below