Mask

In a logical operation, Masking is a process in which only required data is retained and the rest is blocked, it can be done using bitwise operators.