Why use '*' while declaring pointer? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответов
+ 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