Select all options that declare a constant pointer (i.e. a pointer which value cannot be changed)
Explanation
Mnemonic rule: read the pointer declaration from right to left.
For example:
int * i; // pointer to int
int * const i; // constant pointer to int
int const * i; // pointer to a constant of type int
int const * const i; // constant pointer to a constant of type int

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes