Can someone please explain to me the ^ operator. I understand it in terms of zeros and ones, but not when integers are involved.
I have the answers to the questions, but I don't understand why:
2^6 = 4
4^0 = 4
4^3^2 = 5 or 2 (i don't know)
1^3 = 3, 4, or 5(i don't know)
I know that for the boolean expression, XOR returns 1(true) if either of the two numbers is one and returns zero(false) if both are zero or both are one. I can not see how to do XOR operator with integers. Please help or let me know where I can find the answer cuz I have looked forever.