Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 exptools 1/6/84; site iham1.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!iham1!fcy From: fcy@iham1.UUCP (Fred Yankowski) Newsgroups: net.lang.c Subject: Re: Standard extensions (logical exclusive or) Message-ID: <248@iham1.UUCP> Date: Thu, 8-Nov-84 14:37:37 EST Article-I.D.: iham1.248 Posted: Thu Nov 8 14:37:37 1984 Date-Received: Sat, 10-Nov-84 07:18:40 EST References: <374@petsd.UUCP> <3081@alice.UUCP> Organization: AT&T Bell Labs, Naperville, IL Lines: 9 Although "A != B" does not work as a C implementation of logical- exclusive-or, "!A != !B" (or "!!A == !B") does, since the '!' operator has the effect of converting an integer into a "canonical" boolean value: zero or one (and negating the logical sense, of course). Logical equivalence for arbitrary integers can be similarly defined by "!A == !B". Fred Yankowski ::: AT&T Bell Laboratories ::: ihnp4!iham1!fcy