When performing the XOR operation on two integers, how is it calculated?
When performing the XOR operation on two integers, how is it calculated?
The Exclusive OR operation is calculated on each pair of bits (the two bits at the same index in each number.)
5 ^ 6 -> 3
0101 ^ 0110 -> 0011