0

Bitwise

Could anyone tell me what is a bit mask and how to use it in setting, clearing, and testing a bit? -Thanks!

10th Feb 2021, 4:15 AM
feof
feof - avatar
4 Respuestas
+ 2
coip To set a bit, use bitwise OR operator. <mask> | = <bit> To clear a bit, use bitwise XOR operator. <mask> ^= <bit> To check a bit, use bitwise AND operator. <mask> & <bit> https://code.sololearn.com/cP1BMeK7G3LR/?ref=app
10th Feb 2021, 2:05 PM
Ipang
10th Feb 2021, 9:55 AM
Ipang
+ 1
I have already known about bitwise. What I am asking is about bitmask Abol Ipang but thanks.
10th Feb 2021, 1:04 PM
feof
feof - avatar
0
thanks Abol
10th Feb 2021, 9:24 PM
feof
feof - avatar