C Programming :: Declarations and Initializations
3. int main()
int const * p=5;
p is a pointer to a "constant integer". But we tried to change the value of the "constant integer".
*p denotes a pointer. In the code it is declared as constant pointer to an integer. Hence constant values cant be changed so (*p) is not possible hence its showing compiler error.
Please Login First Click Here