14. Bitwise Operations-I

Question.7

A developer wants to clear bits 2 and 3 in an 8-bit ADC config register. The register currently holds 0xFF. He writes:

reg &= (0x03 << 2);

What is wrong with this code?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!