The codes in this Post-increment within a self-assignment, testing with C++.
However I get different result between VS2013
and GCC4.8.4
int cc = 42;
cc = cc++;
cout << cc << endl;
The result of VS2013
is 43
, but the result of GCC
is 42
. It confuse me...
Which result is correct?