+ 6
what is the difference between "|" and "^" ?
3 Answers
+ 11
XOR means exclusive OR. so only one of the two inputs should be 1.
1 ^ 0 = 1
0 ^ 1 = 1
0 ^ 0 = 0
1 ^ 1 = 0
While | is just OR. So _atleast_ one input should be 1.
+ 5
đ
+ 1
Or, exponent of, xor.