XOR
The bit operation that gives 1 where the two bits differ and 0 where they match; XOR with 1 flips a bit.
Exclusive or, written ^ in code and ⊕ in math, gives 1 exactly when its inputs differ; x ^ x = 0 and x ^ 0 = x.
Examples
1100XOR1010=0110, andxor eax, eaxgives 0.