which way ANSI C specified for x = (++i) + (++i) + (++i) + (++i);

Maurizio Loreti loreti@pd.infn.it
Wed Oct 20 23:15:00 GMT 1999


Steven Wu <wus@goodnet.com> writes:

> Someone found this problem and it is quite interesting.

It is not.  Its behavior is undefined, and everything can happen.

Please, get the FAQ (Frequently Asked Questions) list for comp.lang.c
from http://www.eskimo.com/~scs/C-faq/top.html , and have a look at
the following Q/A's: 3.1, 3.2, 3.3, 3.8, 3.9, 11.33 .

-- 
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Univ. of Padova, Dept. of Physics - Padova, Italy            loreti@pd.infn.it


More information about the Gcc-help mailing list