I\'m not talking about pointers to const values, but const pointers themselves.
I\'m learning C and C++ beyond the very basic stuff and just until today I realized t
Types of declaring any variables like-
(1)Declaring a constant variable.
DataType const varibleName;
(2)Declare a pointer to a constant variable
int const x;
x=4; //you can assign its value only One time
const dataType* PointerVaribleName=&X;
const int* ptr = &X;
//Here pointer variable refer contents of 'X' that is const Such that its cannot be modified
dataType* const PointerVaribleName=&X;
int* const ptr = &X;
//Here pointer variable itself is constant Such that value of 'X' can be modified But pointer can't be modified