15. Bitwise Operations-II

Question.6

A developer applies the ~ (bitwise NOT) operator on a uint8_t variable:

uint8_t mask = 0x0F;
if (~mask == 0xF0) {
   printf("Match");
} else {
   printf("No match");
}

What is the output?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!