Binary numbers:
: AND operator.
- 1 if both are 1. 0 otherwise.
: inclusive OR operator.
- 1 if one or both of the two bits = 1. 0 otherwise.
: exclusive OR (XOR) operator.
- 1 if only one of the bits = 1. 0 otherwise.
- called exclusive because it excludes the case where both bits are 1.
: complement (NOT) operator
- flips each bit of a number