p q p or q p xor q
T T T F
T F T T
F T T T
F F F F
Sorry, couldn't help myself... You don't want to use the
Code:
|
bitwise or do you? You want to use the boolean/Logical or: "
Code:
if(p || q)
" If indeed you want to bitwise or them together, you'd want to make it an enumeration of powers of 2, such that you can | them together, and mask for a certian number...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.