Q. Which of the following is the correct way to define a constant pointer in C++?
β
Correct Answer: (A)
int* const ptr;
Explanation: In C++, 'int* const ptr;' defines a constant pointer to an integer.