The EXCLUSIVE OR operator results in a 1 when either, but not both, of its two operands is 1.
Bit 1
Bit 2
Bit 1 ^Bit 2
0
1