6.5.11 Bitwise exclusive OR operator

Previous Table of Contents "New C Standard" commentary

1240

exclusive-OR-expression:
                AND-expression
                exclusive-OR-expression ^ AND-expression

1241 Each of the operands shall have integer type.

1242 The usual arithmetic conversions are performed on the operands.

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

Next

Created at: 2008-01-30 02:39:43 The text from WG14/N1256 is copyright © ISO