to "OR" or not to "OR"

Eric B. Hymowitz hymowitz at jhunix.HCF.JHU.EDU
Thu May 30 09:19:25 AEST 1991


>In article <1991May28.191122.15749 at ncsu.edu>, tmjones at eos.ncsu.edu (TOMMIE MILES JONES) writes:

>) I'm tired of Demorgan's law (a | b= !(a & b)) isnt there a way to get around 

sounds like you either need to
(a) manage to do it once, and then #define or |
or
(b) #define on another machine and then port it to yours.

btw, isn't demorgan's law a|b = !(!a & !b)?

a b !a !b a|b !a&!b! (!a&!b) a&b !(a&b)
T T F  F  T   F      T       T   F
T F F  T  T   F      T       F   T
F T T  F  T   F       T      F   T
F F T  T  F   T        F     F   T

--hymie

no sig yet - give me a few days.



More information about the Comp.lang.c mailing list