Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hadron.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.lang.c Subject: Re: C style Message-ID: <54@hadron.UUCP> Date: Sat, 2-Nov-85 19:00:14 EST Article-I.D.: hadron.54 Posted: Sat Nov 2 19:00:14 1985 Date-Received: Mon, 4-Nov-85 03:18:52 EST References: <1556@brl-tgr> <2600023@ccvaxa> <259@3comvax.UUCP> <538@ttrdc.UUCP> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 10 Keywords: &&, order of evaluation In article <538@ttrdc.UUCP> levy@ttrdc.UUCP (Daniel R. Levy) writes: > ... 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). Only screwball compilers. In C, the evaluation of '||' and '&&' is defined to be L-R. However, the evaluation of '|' and '&' is not. -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}