Fascinating. A difference in version, perhaps?Originally Posted by joybanerjee39
I think the behaviour is well defined. b is merely a pointer to a char, like any other. Incrementing it then decrementing it is not a problem. Undefined behaviour would come if we attempted to modify what b pointed to, but that does not happen here. Futhermore, there are three separate statements, so there is no problem with doing too much within consecutive sequence points.Originally Posted by CommonTater
EDIT:
Maybe you have discovered an optimisation bug in your version of Pelles C.Originally Posted by juice