14. Bitwise Operations-I

Question.1

A firmware developer wants to enable the interrupt bit (bit 4) in an 8-bit peripheral control register without disturbing other configured bits. The register currently holds 0xCB. He writes: 

ctrl_reg = (1 << 4); 

What is the value of ctrl_reg after this operation? 

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!