Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ncar!gatech!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!axion!vision!ukpoit!alan From: alan@ukpoit.co.uk (Alan Barclay) Newsgroups: comp.lang.c Subject: Re: The nonexistent operator (along = v. == lines) Keywords: xor Message-ID: <1991Apr11.122102.5976@ukpoit.co.uk> Date: 11 Apr 91 12:21:02 GMT References: <156@revcan.UUCP> <1991Apr3.184316.11559@dg-rtp.dg.com> Organization: iT - The Information Technology Business Of The Post Office Lines: 18 In article <1991Apr3.184316.11559@dg-rtp.dg.com> barnettr@snaggle.rtp.dg.com (Richard Barnette) writes: > > A B | A XOR B A B | A AND B A B | A AND B > -----+--------- -----+--------- -----+--------- > F F | F F F | F F F | F > F T | T F T | T F T | F > T F | T T F | T T F | F > T T | F T T | T T T | T > > Given A if F, A AND B is always F; given A is T, A OR B is always >T. No such statement can be made for A XOR B; if A is T, A XOR B is I take it that the A AND B table should read F,F,T,T as F AND T is F. -- Alan Barclay iT | E-mail : alan@ukpoit.uucp Barker Lane | BANG-STYLE : .....!ukc!ukpoit!alan CHESTERFIELD S40 1DY | VOICE : +44 246 214241