constant pointer to an address or pointer to a value
问题 Do int const *a and const int *a mean that "a is a integer pointer to a constant value" and "a is a pointer to a constant address", respectively , or is it viceversa? This was asked to me in an interview. After reading a lot about the same I am still very much confused regarding it. 回答1: const int *a - a is writable (can point to a different thing), *a is not writable (cannot write to pointed-to thing) int const *a - same as above int * const a - a is not writeable (cannot point to a