Function Argument Evaluation

Doug Gwyn gwyn at smoke.brl.mil
Sat Mar 23 07:58:56 AEST 1991


In article <17809 at crdgw1.crd.ge.com> volpe at camelback.crd.ge.com (Christopher R Volpe) writes:
>Ok, but I believe that is true only because the behavior is undefined

No; the order of evaluation in this example is explicitly UNSPECIFIED,
which is not at all the same as UNDEFINED BEHAVIOR.  There are several
possible ways to mix up the order of evaluation, but one of them MUST
be selected by a conforming implementation for each such situation.
(The selection need not be made on a consistent basis, however.)



More information about the Comp.std.c mailing list