Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site voder.UUCP Path: utzoo!utcs!lsuc!pesnta!hplabs!nsc!voder!gino From: gino@voder.UUCP (Gino Bloch) Newsgroups: net.lang.c Subject: Re: <=> and obfuscation Message-ID: <670@voder.UUCP> Date: Mon, 11-Feb-85 19:32:38 EST Article-I.D.: voder.670 Posted: Mon Feb 11 19:32:38 1985 Date-Received: Wed, 13-Feb-85 13:33:01 EST References: <7699@brl-tgr.ARPA> <1293@bbncca.ARPA> <7853@brl-tgr.ARPA> <805@sjuvax.UUCP> <11927@gatech.UUCP> Organization: National Semiconductor, Santa Clara Lines: 10 > > [Aren't you hungry...] > > To exchange two items without an intermediate variable, try: > > b ^= a ^= b ^= a > However, if a == b when you start out, you end up with a == 0 && b == 0. Not according to my truth table -- Gene E. Bloch (...!nsc!voder!gino) The opinions expressed above are accidents.