comma operator

SMITHJ at ohstpy.mps.ohio-state.edu SMITHJ at ohstpy.mps.ohio-state.edu
Fri Aug 4 07:18:56 AEST 1989


In article <1351 at cbnewsl.ATT.COM>, mpl at cbnewsl.ATT.COM (michael.p.lindner) writes:
> ***FLAME ON!***
> Sigh.  RTFM!  The comma operator guarantees left to right evaluation,
> and fprintf(...) and exit(...) ARE valid expressions in C.
> sputter sputter - flame off.

Maybe I'm mistaken, but I'm sure that all the documentation I've read warns
that the *comma* operator ----does not----- guarantee evaluation in any order.
Specifically, the Microsoft 5.0 manual mentions this.

-- 
/* Jeffery G. Smith, BS-RHIT (AKA Doc. Insomnia, WMHD-FM)       *
 *    The Ohio State University, Graduate Physics Program       *
 *        3193 Smith Lab, Columbus, OH 43210  (614) 292-5321    *
 *    smithj at ohstpy.mps.ohio-state.edu                          */



More information about the Comp.lang.c mailing list