The XOR bitwise operator works as follows:
A = 10111 B = 01010
A ^ B = 11101
Different resutl correlation bits in 1, similar - 0.
In your case, these integers are first converted to binary, and then processed as in the example above.
user586399
source
share