math - What does bitwise XOR (exclusive OR) mean? - Stack Overflow
To see how it works, first you need to write both operands in binary, because bitwise operations work on individual bits. Then you can apply the truth table for your particular operator. It acts on each pair of bits having the same position in the two ope...