Vidyalelo
C++ Programming · Q29

Pointers and References in C++

Programming · C++ Programming · question 29

Q29

What is the purpose of the 'const' keyword in a pointer declaration in C++?

A.
Indicates that the pointer itself is constant
B.
Indicates that the value pointed to is constant
Answer
C.
Indicates that the pointer can be reassigned
D.
Indicates that the pointer points to a constant value

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board