Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Bitwise OR operator performs a bitwise OR of the bits of the first operand with the bits of the second operand. Bitwise OR can be used in both variable and integer constant expressions, but not in floating-point constant expressions. Each bit of the two operands is subject to the following logic:

Bitwise OR Truth Table

A

Result

0

0

0

0

1

1

1

0

1

1

1

1

Example:

...