C++ Pointers Quiz - Question 9

Last Updated :
Discuss
Comments

What is the correct way to declare a constant pointer to an integer in C++?

int const *ptr;

const int * const ptr;

const int *ptr;

int * const ptr;

Share your thoughts in the comments
Article Tags :