What is the data type of pointer ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the data type of pointer ??

I know that pointer is a variable that store address of another variable ,So I want to know what can be the data type of pointer.

14th Jan 2017, 10:18 AM
shubham verma
shubham verma - avatar
1 Answer
+ 1
It is with what you declare it with. It will store only the address of the variable that matches its declared type. So for integer variable you need an integer pointer and similarly for character variable you need character pointer.
14th Jan 2017, 10:24 AM
Rishabh Agrawal
Rishabh Agrawal - avatar