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

Does the following code compile, and why?

int a = 10, b = 20; int* const p = &a; p = &b;