View Single Post
  #4   (View Single Post)  
Old 18th November 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

Quote:
Originally Posted by JMJ_coder View Post
[CODE]variable1 = variable1++ % 2;
The result of the above statement is "undefined" by the C standard.

This is because "variable1" is being modified more than once without any sequence point
in between the modifications.
Reply With Quote