This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
For my own edification, it's not clear to me that the instruction sequence:It's a matter of language definition, there simply is a requirement in the C definition
int zero = 125; zero = (++zero)%3;
is ambiguous in any way, as I was under the impression that the left hand side of an assignment expression will be assigned the resulting value of the evaluation of it's right hand side, which unambiguously logically equivalent to:
int zero = 125;
zero = ((zero = zero + 1) % 3) ;
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |