How are the pointers usefull?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How are the pointers usefull??

17th Sep 2017, 4:13 AM
Ñävi Jäswäl
Ñävi Jäswäl - avatar
6 Answers
+ 7
Data structures. :> E.g. Binary tree http://www.cprogramming.com/tutorial/lesson18.html
17th Sep 2017, 5:01 AM
Hatsy Rei
Hatsy Rei - avatar
+ 7
Why did you blame me? I just type what I often use of it (´;ω;`)
17th Sep 2017, 5:46 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 5
Pointer >> Ram editor
17th Sep 2017, 4:14 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 1
@Very_Hard Not always Ram. It can be on your hdd or ssd too
17th Sep 2017, 5:40 AM
aklex
aklex - avatar
+ 1
a)pointers allow anyone to implement sharing without copying.i.e pass by reference v/s pass by copying.this allows a tremendous advantage when u are passing around big arrays as arguments to function. b)pointers allow modifications by function that is not the creator of the memory i.e function A can allocate the memory and c can modify it without using globals c)pointers allow us to use dynamic memory allocation d) pointers give us ability to implement complex data structures like linked list,tress e)pointers allow ease of programming when working with strings.they make coding easy to increment the next memory location of arrays f)pointers allow us to resize the data structures whenever needed.this ability is very important in implementing sparse data structures also.
1st Oct 2017, 10:46 PM
Prabhat Thakur
Prabhat Thakur - avatar
- 1
Polymorphic behaviour, dynamic memory, data structures. Pointers are everywhere.
17th Sep 2017, 12:59 PM
Timon Paßlick