Masks and Their Construction
Learn how to create mask values in C.
Creating mask values
Suppose n = 45
and your task is to:
- AND it with a number whose 3rd bit is on
- OR it with a number whose 7th bit is on
- XOR it with a number whose 4th bit is on
The original number is n
; ...
Access this course and 1400+ top-rated courses and projects.