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