What can i do with pointers ..why they are important ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What can i do with pointers ..why they are important ?

11th Dec 2016, 12:41 AM
Rana
Rana - avatar
2 Answers
+ 1
to get the data or access strings in array
11th Dec 2016, 3:49 AM
Joven Patungan
Joven Patungan - avatar
0
Rio, when we need to access strings arrays , or when we use pass by reference arguments then, we cannot do it without pointers (* ) it's used to create pointer variables pointing at memory address of some variable (&) this address operator is used to create the actual memory address value of the variable int a=3; but &a is memory address where 3 is stored , so some hexadecimal value. we use pointers to use equality operations indirectly using address value s
11th Dec 2016, 3:04 AM
Morpheus
Morpheus - avatar