âx--â would self-add before opration "-- " ï¼
Andi Hellmund
mail@andihellmund.com
Mon Jun 7 11:40:00 GMT 2010
> I am not familar with both c++ and compiler implementation, donot konw
> why the results are differnt for gcc and clang. Anyone could help and
> explain this difference for me?
The ISO C standard says that the evaluation order of function arguments is
unspecified [ISO C99, 6.5.2.2-11], though the implementation (GCC vs.
clang) is free to choose which evaluation order to use. That's why you see
these differences between GCC and clang.
Andi
More information about the Gcc
mailing list