Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdchem!tps From: tps@sdchem.UUCP (Tom Stockfisch) Newsgroups: net.lang.c Subject: Re: Boolean Operators Slighted in C Message-ID: <210@sdchema.sdchem.UUCP> Date: Fri, 2-May-86 18:32:26 EDT Article-I.D.: sdchema.210 Posted: Fri May 2 18:32:26 1986 Date-Received: Sun, 4-May-86 05:31:49 EDT References: <838@ihwpt.UUCP> <778@bentley.UUCP> Reply-To: tps@sdchema.UUCP (Tom Stockfisch) Organization: Chemistry Dept, UC San Diego Lines: 15 In article <778@bentley.UUCP> kwh@bentley.UUCP writes: >In article <838@ihwpt.UUCP> ihwpt!knudsen writes: >>(2) There isn't any ^^ (XOR) operator either, as in > >There is, but it's spelled "!=". (Presumably more efficient than "^", though >I think either one should work with a smart compiler.) > Not quite the same. 3 ^^ 4 would evaluate as 0, 3 != 4 evaluates as 1. -- Tom Stockfisch, UCSD Chemistry