I thought this code:
will yield:Code:{ int myInt; myInt = 5; printf( "myInt++ ---> %d\n\n++myInt ---> %d", myInt++, ++myInt); }
"myInt++ ---> 5
++myInt ---> 7"
but it actually gave:
"myInt++ ---> 6
++myInt ---> 7"
with a warning: operation on 'myInt' may be undefined.
Can some one help me out? I'm so confused by the result and the warning message.