6.5.11 Bitwise exclusive OR operator

Syntax

1

exclusive-OR-expression:

AND-expression

exclusive-OR-expression ^ AND-expression

Constraints

2

Each of the operands shall have integer type.

Semantics

3

The usual arithmetic conversions are performed on the operands.

4

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).