C style

preece at ccvaxa.UUCP preece at ccvaxa.UUCP
Fri Nov 1 01:25:00 AEST 1985


> /* Written  8:54 pm  Oct 29, 1985 by levy at ttrdc.UUCP in
> ccvaxa:net.lang.c */ 
> The && operator doesn't GUARANTEE the chronological order of evaluation
> is going to be left to right, if you have a screwball compiler (though
> it most probably will be).
----------
"Expressions connected by && or || are evaluated left to right,
and it is guaranteed that evaluation will stop as soon as the
truth or falsehood is known." [K&R, p19]

-- 
scott preece
gould/csd - urbana
ihnp4!uiucdcs!ccvaxa!preece



More information about the Comp.lang.c mailing list