Flashcard
Calculate the result of the Bitwise OR operation (Result = Value | Mask):
How to calculate: Compare the binary representations of Value and Mask bit by bit. The resulting bit is 1 if the corresponding bit in *either* Value or Mask (or both) is 1. The result bit is 0 only if both corresponding bits are 0.
Example: 0x0C | 0x0A
(Binary 00001100 | 00001010
) results in 00001110
, which is 0x0E
.
?