postfix operator problem
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
Following code works well when compiled with Microsoft c-compiler : j = 0; j = (j < 1) ? j++ : 0; --> result j = 1 When compiled with Microsoft c++ compiler --> result = 0 (wrong) Can somebody explain this?
-
Following code works well when compiled with Microsoft c-compiler : j = 0; j = (j < 1) ? j++ : 0; --> result j = 1 When compiled with Microsoft c++ compiler --> result = 0 (wrong) Can somebody explain this?