Try Our Apps


Gobble up these 8 terms for eating

bit mask

bit mask in Technology

A pattern of binary values which is combined with some value using bitwise AND with the result that bits in the value in positions where the mask is zero are also set to zero. For example, if, in C, we want to test if bits 0 or 2 of x are set, we can write
int mask = 5; /* binary 101 */
if (x & mask) ...
A bit mask might also be used to set certain bits using bitwise OR, or to invert them using bitwise exclusive OR.

The Free On-line Dictionary of Computing, © Denis Howe 2010
Cite This Source

Word of the Day

Word Value for bit

Scrabble Words With Friends

Nearby words for bit mask