Bitwise Exclusive OR (^)

The result of exclusive OR is 1 only if either of the bits are 1 or 0 otherwise it is 0. In our above example the result of a

exclusive ORed with b is:
a ^ b = 0000 0000 0001 1010

No comments:

Post a Comment