Mail Archives: djgpp/1998/06/09/08:46:30
Bob Lied wrote:
> The solution is, "Don't do that." The order of parameter
> evaluation is compiler-dependent, and the order of applying
> multiple post-increments is compiler-dependent. Depending on
> the compiler, you could also get "1 1 2", "1 2 3", or "3 3 3".
Printing "0 0 0" or crashing would, perhaps surprisingly, be acceptable
from a perfectly ANSI compliant compiler.
--
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 -