[email protected] wrote: > On 17 Apr 2007 13:13:15 -0700, Mohammad Nabil <[ > mailto:mohamad80986%40yahoo.com [EMAIL PROTECTED]> wrote: >> I think that's not undefined behavior the compiler translates as follows: > > You're wrong. > > Any code of the form: > > i = ++i; > > or > > x = y + y++; > > where a variable is modified more than once in 'a statement' (formally > 'between sequence points') produces undefined behaviour. Just because . . .
I am not sure that I understand, did you give a bad example? I do not see that any variable is modified more than once in "x = y + y++". It looks to me like x is modified once and y is modified once. Are you saying that the behavior of this statement is undefined?
