0

Do we have to also put a variable after '*' sign to declare pointers?

31st Mar 2017, 5:36 AM
Yash Singhal
Yash Singhal - avatar
2 Réponses
+ 18
Normal variable: int p; Pointer variable: int *p;
31st Mar 2017, 5:38 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
the pointer to int p would be int p; int *ptr = &p;
31st Mar 2017, 5:43 AM
David Najafi
David Najafi - avatar