Skip to content
DRILL 41Medium

Testing All Masked Bits

Which expression is true only when both the READ and WRITE bits are set?

drill.cC
#define READ  (1u << 0)
#define WRITE (1u << 1)

Choose an answer