Jul 16, 2013 at 4:32pm
could someone explain to me why the answer would be 3?
1 2 3 4 5
|
int a = 5;
a -= a-- - --a;
cout << a;
|
Last edited on Jul 16, 2013 at 4:32pm
Jul 16, 2013 at 4:34pm
The code has undefined behaviour.
Jul 16, 2013 at 4:35pm
Are you saying its not valid? because its valid.
Jul 16, 2013 at 4:42pm
Last edited on Jul 16, 2013 at 4:45pm