+ 1
How are the pointers usefull??
6 Respuestas
+ 7
Data structures. :>
E.g. Binary tree
http://www.cprogramming.com/tutorial/lesson18.html
+ 7
Why did you blame me? I just type what I often use of it (´;ω;`)
+ 5
Pointer >> Ram editor
+ 1
@Very_Hard Not always Ram. It can be on your hdd or ssd too
+ 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.
- 1
Polymorphic behaviour, dynamic memory, data structures. Pointers are everywhere.