Mail Archives: djgpp/1998/06/09/08:46:38
Blaine Hodge wrote:
> > > printf("%d %d %d", i, i++, i++);
...
> Then its VC at fault (gee, imagine that), sounds like its evaluating
> it
> using the Pascal calling method, left to right, and not C/C++, right
> to
> left.
No, neither compiler is wrong. The result of the above code is
undefined. That means that it can do anything from printing zeroes
(even though i started with 0) to computing pi, to crashing -- any of
those would be perfectly ANSI compliant implementations, since it's a
user error.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm:+37.20.07/-121.53.38
\
She glanced at her watch / . . . It was 9:23.
/ James Clavell
- Raw text -