Exclusive or, or exclusvie disjunction, abbreviated as XOR, is a logical operator with the following truth table:
F | F | F |
F | T | T |
T | F | T |
T | T | F |
Symbols used to represent exclusive or including \oplus
) and \veebar
).
One way to understand the xor operator is “addition modulo 2”.