Why use '*' while declaring pointer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why use '*' while declaring pointer?

'Pointer is a variable that stores the address of another variable'. So why can't we declare a pointer just like any other variable?

13th Jul 2018, 7:34 PM
Fias Iqbal
Fias Iqbal - avatar
2 Answers
+ 3
to distinguish it from other normal variables.
13th Jul 2018, 7:51 PM
Thabozee
Thabozee - avatar
+ 1
Its not any variable. Every variable is associated with a pointer, so it is a special kind of variable
13th Jul 2018, 8:09 PM
Bebida Roja
Bebida Roja - avatar