What is pointer to constant and constant to pointer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is pointer to constant and constant to pointer?

Where it is used? Please give example.

6th Feb 2019, 2:06 PM
Ab Rt
1 Answer
0
pointer to constant is just like assigning pointer to any variable.i.e your storing the address of the constant.But when u say constant to pointer then your making the pointer constant.i,e then the value stored in the pointer won't change throughout your program.
2nd May 2020, 3:20 PM
Lakshmi Priya Althuru
Lakshmi Priya Althuru - avatar