EXCLUSIVE OR (^)

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

0

0

0

1

1

1

0

1

1

1

0