When you invoke the ++ operator (either pre- or post-increment) twice in the
same statement, you invoke undefined behavior. How your compiler decides to
resolve that is completely """compiler-dependent""". There is undefined
behaviour because the same variable is modified more than once between
consecutive sequence points, i.e., the sequence point just before the call
of printf, and then the sequence point just after the evaluation of the
arguments to printf.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to