Bitwise XOR Operator (^)

By: Dusty Arlia
Published on March 8, 2013
Last Updated on Sunday, July 05, 2015 at 6:58 PM
Total Updates: 3

The bitwise XOR (^) operator performs a bitwise exclusive OR on two expressions. These two expressions are interger operands.

  • bitwise - means on each bit
  • exclusive OR - means that either operand can be true but not both

Here's an example:

0x000F ^ 0x00FF 

This evaluates to 0x00F0.