Bitwise XORtake two equal-length bit patterns.
If both bits in the compared position of the bit patterns are 0 or 1, the bit in the resulting bit pattern is 0, otherwise 1.
Another slightly more complex example
Decimal | Binary | |
---|---|---|
10270010 | 100111001011010100111010 | Bitwise XOR |
5905368 | 010110100001101111011000 | Equals |
13020898 | 110001101010111011100010 | Result |