170 views
0 votes
0 votes

The bitwise AND operator & is often used to mask off some set of bits, for example,

    n = n & 0177 

sets to zero all but the low order 7 bits of n.

Can anyone please explain how masking is done??

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
3
Surya Dhanraj asked Aug 18, 2017
119 views
The bitwise or operator is used to turn bits on.What is the meaning of turning bits on??Is it mean making it one.And what will be the definition of turning bits off??Some...
1 votes
1 votes
0 answers
4