+ 1
Does POINTERS have TYPES?????
3 Answers
+ 20
Of course my friend. Consider the following pointer variables:
int n = 5;
int *nPtr = &n; // nPtr is an integer pointer
float f = 5.5f;
float *fPtr = &f; // fPtr is a float pointer
We can also cast one type of pointer to another type.
+ 1
thank you babak
0
Pointers do not have types. Pointers can point to variables of different data types like int,float,char etc.