function call argument evaluation and global variables

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Aug 23 14:46:33 AEST 1989


In article <21448 at paris.ics.uci.edu> schmidt at glacier.ics.uci.edu (Doug Schmidt) writes:
>  foo (number, bar ());
>I'm just interested to know whether the standard defines the behavior here,

The order of evaluation of the arguments to a function is unspecified, and
a sequence point occurs before the actual function call.  In your example,
either outcome is permitted.



More information about the Comp.lang.c mailing list