I am reading book Pointers on C
by Kenneth Reek
book talks about constant pointers
what are constant pointer to integer?
In them pointer is constant (what that means?) its value cannot be changed (shouldn't its value be value of cpi=5
5 is the value of constant which should be read as constant integer Or is constant one thing and integer is another -- please clarify) book continue saying but u are free to modify integer to which points to
so basically I can do cpi=5
and in next line cpi=19
then why do I need them what it makes constant? to have constant pointer what we achieve.
int * const cpi;
The auther also says int constant *pci
is a pointer to constant integer. and so I can change the pointer value (Q: how can I change the pointer value can u give examples)