I want to know the difference between

const int* ptr;

and

int * const ptr; 

and how it works.

It is pretty difficult for me to understand or keep remember this.
Please help.

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *