Article View: net.lang.c
Article #9379Order of function argument evaluation
From: LINNDR%VUENGVAX.BITNET
Date: Mon, 22 Sep 1986 05:28
Date: Mon, 22 Sep 1986 05:28
21 lines
1130 bytes
1130 bytes
>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@WISCVM.WISC.EDU ! Internet (I think)
...!psuvax1!vuengvax.bitnet!linndr ! Usenet
Technical Details
Message-ID:
<3965@brl-smoke.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!brl-smoke!smoke!LINNDR%VUENGVAX.BITNET@wiscvm.ARPAShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!brl-smoke!smoke!LINNDR%VUENGVAX.BITNET@wiscvm.ARPA From: LINNDR%VUENGVAX.BITNET@wiscvm.ARPA Newsgroups: net.lang.c Subject: Order of function argument evaluation Message-ID: <3965@brl-smoke.ARPA> Date: Mon, 22-Sep-86 01:28:49 EDT Article-I.D.: brl-smok.3965 Posted: Mon Sep 22 01:28:49 1986 Date-Received: Wed, 24-Sep-86 07:05:40 EDT Sender: news@brl-smoke.ARPA Lines: 21