Question.2
A sensor status register is 8 bits wide. Bits 4–6 contain a 3-bit error code (0–7). The rest of the register holds other flags. Which expression correctly extracts only the error code?
Select Answer
(status >> 4) & 0x07
status & 0x70
(status & 0x70) >> 4
Both A and C