|
Am 17.09.2014 um 20:30 schröbte Hao Wu:
On Wed, Sep 17, 2014 at 11:24 AM, Axel Kittenberger <axkibe@gmail.com> wrote:I just assume undefined behavior.It _is_ undefined. C does not give any guarantee which side of '+' isit is _unspecified_
You are both right :-)The order of evaluation of subexpressions is unspecified, but multiple modifications of an lvalue between two sequence points invokes undefined behavior.
evaluated first. In Javascript for example, the result would be defined and 4.
Philipp