Thursday, 19 September 2013

Are the results of x++, x++; and x = x++; undefined?

Are the results of x++, x++; and x = x++; undefined?

The following code can be compiled with VC++ 2013 RC.
int x = 0;
x++, x++;
x = x++;
However, someone said the results of these statements are not defined by
the C or C++ standard. Is it true or false?

No comments:

Post a Comment