Work out bitwise and or xor instantly with clear inputs, formula shown and shareable results.
Bitwise operators act on each bit position independently: AND keeps bits set in both, OR keeps bits set in either, and XOR keeps bits set in exactly one. AND is used to mask, OR to set, XOR to toggle.
Truth per bit
AND: 1 only if both are 1; OR: 1 if either is 1; XOR: 1 if exactly one is 1
11001010 AND 01011011 = 01001010 = 74, OR = 11011011 = 219, XOR = 10010001 = 145.
It is its own inverse, so applying the same XOR twice restores the original — the basis of simple ciphers and of swapping without a temporary variable.