Question PRG-CPP-0058
MediumWhat does 'const int *p' mean in C++?
- A.
p is an int
- B.
Both p and *p are constant
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C++ question
What does 'const int *p' mean in C++?
p is an int
Both p and *p are constant
Sign up free to see the answer and a step-by-step explanation.
p is a constant pointer
p points to a const int: *p can't be changed through p, but p itself can be repointed