Question: what is difference between constant pointer and constant variable?
Answer: Constant Pointer : It is a pointer which can not change the address to which it is pointing. Value of variable a is 3 and On dereferencing pointer ptr,we'll get value 3. Pointer to constant : It is a pointer which is pointing to constant data. Value of variable a is 3 and On dereferencing pointer ptr,we'll get value 3.