Bitwise XOR: ^
- Last UpdatedNov 07, 2016
- 1 minute read
Compares the binary representations of two integer numbers, bit for bit, and returns a result according to the following table:
|
Bit in first operand |
Bit in second operand |
Bit in result |
|---|---|---|
|
0 |
0 |
0 |
|
0 |
1 |
1 |
|
1 |
0 |
1 |
|
1 |
1 |
0 |
This operation is also called "exclusive OR."
Valid operands
Any Integer value.
Data type of return value
Integer