The XOR operation takes two bit patterns of equal length and performs the logical XOR operation on each pair of corresponding bits.
The result of each digit is 1 if the two bits are different, and 0 if they are the same.
0101 (decimal 5)
XOR 0011 (decimal 3)
= 0110 (decimal 6)