Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: net.lang.c Subject: Re: Standard extensions (logical exclusive or) Message-ID: <3109@alice.UUCP> Date: Fri, 16-Nov-84 10:58:58 EST Article-I.D.: alice.3109 Posted: Fri Nov 16 10:58:58 1984 Date-Received: Sat, 17-Nov-84 04:17:33 EST References: <1824@sdcc6.UUCP> Organization: AT&T Bell Laboratories, Murray Hill Lines: 24 Jim of HCDE says: "... although not all machines have booleans as 1, ..." From K&R, page 189: The operators < (less than), > (greater than), <= (less than or equal to), and >= (greater than or equal to) all yield 0 if the specified relation is false and 1 if it is true. From K&R, pag 190: The == (equal to) and the != (not equal to) operators are exactly analogous to the relational operators except for their lower precedcence. The && operator groups left-to-right. It returns 1 if both its operands are non-zero, 0 otherwise. Unlike &, && guarantees left-to-right evaluation; moreover the second operand is not evaluated if the first operand is 0. Page 191 contains a similar statement for ||