Bitwise XOR
Syntax
x ^ y
Explanation
Sets each bit to 0
where the corresponding bit in both operands is different
Truth Table
A
B
A ^ B
0
0
0
0
1
1
1
0
1
1
1
0
Last updated
Was this helpful?
x ^ y
Sets each bit to 0
where the corresponding bit in both operands is different
A
B
A ^ B
0
0
0
0
1
1
1
0
1
1
1
0
Last updated
Was this helpful?