to "OR" or not to "OR"

Dale Worley worley at compass.com
Sat Jun 1 00:08:43 AEST 1991


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 at 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"



More information about the Comp.lang.c mailing list