Bitwise AND ( & )
- Last UpdatedMay 10, 2016
- 1 minute read
A bitwise binary operator compares 32-bit integer words with each other, bit for bit. Typically, this operator masks a set of bits. The operation in this example "masks out" (sets to zero) the upper 24 bits of the 32-bit word. For example:
result = name & 0xff;