Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC++const correctnessSingle-choice MCQ

In a function taking `int* const p`, what is true about `p`?

void f(int* const p) { *p = 5; // (A) p = nullptr; // (B) }