6.5.12 Bitwise inclusive OR operator

Syntax

1

inclusive-OR-expression:

exclusive-OR-expression

inclusive-OR-expression | exclusive-OR-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 inclusive OR of the operands (that is, each bit in the result is set if and only if at least one of the corresponding bits in the converted operands is set).