Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Reading right to left, what does const char* const p declare?

  1. A A constant pointer to constant characters
  2. B A pointer to constant characters that can be reseated
  3. C A constant pointer to modifiable characters
  4. D A reference to a character array
Answer

A constant pointer to constant characters

The first const applies to the pointed-to data and the second to the pointer itself, so neither the data nor the pointer may change.

All C++ MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as