+ 1

Does POINTERS have TYPES?????

20th Sep 2017, 11:31 AM
mithun
3 Respostas
+ 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.
20th Sep 2017, 12:11 PM
Babak
Babak - avatar
+ 1
thank you babak
21st Sep 2017, 1:39 AM
mithun
0
Pointers do not have types. Pointers can point to variables of different data types like int,float,char etc.
20th Apr 2018, 2:59 PM
DEBAYAN BHAUMIK
DEBAYAN BHAUMIK - avatar