Bitwise XOR Operator (^)

The bitwise XOR operator compares each bit of its first operand to the corresponding bit of its second operand. If both bits are the same value, the corresponding result bit is set to 0. Otherwise, the corresponding result bit is set to 1.

Example

INT a :=  0b1010;
INT b := 0b10011;
INT c;

c := a ^ b;    // c is 0b11001