Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!decwrl!hplabs!hpda!hpcuhb!hpsqf!hpqtdla!craigb From: craigb@hpqtdla.HP.COM (Craig Bruce) Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <430006@hpqtdla.HP.COM> Date: 4 Aug 89 12:51:14 GMT References: <1989Jul28.174033.12734@jarvis.csri.toronto.edu> Organization: HP, Queensferry Telecomms (UK) Lines: 19 According to my text (Darnell & Margolis's Software Eng. in 'C', p137) : "The comma operator is one of the few operators for which the order of evaluation is specified. The compiler must evaluate the left-hand operator first." As this book covers both ANSI standard and K&R and comments on differences between the two, and since this comment is stated as fact I think it is safe to take it as pretty close to gospel. Craig ------------------------------------------------------------------------------- Craig Bruce, \ / .hsif eht lla rof sknaht dna gnol oS Hewlett-Packard, \ / yxalaG eht ot ediuG s'rekcihhctiH - South Queensferry Telecomms Division. \/ -------------------------------------------------------------------------------