Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!think.com!compass!worley From: worley@compass.com (Dale Worley) Newsgroups: comp.lang.c Subject: Re: to "OR" or not to "OR" Message-ID: Date: 31 May 91 14:08:43 GMT References: <1991May28.191122.15749@ncsu.edu> <1991May28.210421.9656@unlv.edu> <8492@jhunix.HCF.JHU.EDU> Sender: root@compass.com Organization: Compass, Inc., Wakefield, MA, U.S.A. Lines: 14 In-reply-to: hymowitz@jhunix.HCF.JHU.EDU's message of 29 May 91 23:19:25 GMT Various posters say: >) I'm tired of Demorgan's law (a | b= !(a & b)) isnt there a way to get around btw, isn't demorgan's law a|b = !(!a & !b)? In this case, it's: a|b == ~(~a & ~b) and a||b == !(!a && !b). Remember that |, &, and ~ are bitwise operators, while ||, &&, and ! are logical operators. Dale Worley Compass, Inc. worley@compass.com -- I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, "Ghostbusters"