64. Pointer-ii

Question.4

A developer declares two pointers for accessing a read-only hardware register:

const int *p1 = (const int *)0x40020000;
int *const p2 = (int *const)0x40020000;

Which pointer prevents modifying the register value?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!