6.5.11 Bitwise exclusive OR operator
Syntax
exclusive-OR-expression:
AND-expression
exclusive-OR-expression ^ AND-expression
Constraints
Each of the operands shall have integer type.
Semantics
The usual arithmetic conversions are performed on the operands.
The result of the ^ operator is the bitwise exclusive OR of the operands (that is, each bit in the result is set if and only if exactly one of the corresponding bits in the converted operands is set).