34,333
edits
Changes
→Bitwise XOR
== Bitwise XOR ==
The bitwise XOR (commonly referred to as ''exclusive OR'') performs a similar task to the OR operation except that a 1 is placed in the result if one or other corresponding bit positions in the two numbers is 1. If both positions are a 1 or a 0 then the corresponding bit in the result is set to a 0. For example: