I've often used pointers to const objects, like so...
const int *p;
That simply means that you can't change the integer that p
is pointing at through p
. But I've also seen reference to const pointers, declared like this...
int* const p;
As I understand it, that means that the pointer variable itself is constant -- you can change the integer it points at all day long, but you can't make it point at something else.
What possible use would that have?