Order of function argument evaluation
LINNDR%VUENGVAX.BITNET at wiscvm.ARPA
LINNDR%VUENGVAX.BITNET at wiscvm.ARPA
Mon Sep 22 15:28:49 AEST 1986
>Does anyone know of a compiler for which the program below does NOT
>produce the output shown?
> .
> . <program deleted>
> .
>----- PROGRAM OUTPUT ---------------
>2,1,0
>3
>------------------------------------
It seems I can answer my own question; the Sargasso C compiler for the
DEC-10 under TOPS-10 produces
-----
0,1,2
3
------
This sort of behavior is up to the compiler writer, isn't it?
-----------------------------------------------------------------------
David Linn
LINNDR%VUENGVAX.BITNET at WISCVM.WISC.EDU ! Internet (I think)
...!psuvax1!vuengvax.bitnet!linndr ! Usenet
More information about the Comp.lang.c
mailing list