0

What is the auctal use in using pointers in structuers

What is the use basically? Memory efficiency or effortless? I don't understand

23rd Nov 2020, 3:03 PM
Sreenesh
Sreenesh - avatar
3 Réponses
+ 1
Pointers in structures are most efficient way to solving problem. They provide flexibility and dynamic handling of memory. As simple you can pass structure address rather than whole structure so memory consumption can be decrease . Another aspect is to allocate and use memory dynamically using DMA functions of C. So that you can increase and decrease size at run time. Your program only consume required memory rather than defining it on compile time. This opens lots of possibility such as data structures like Linked Lists, Dynamic Stacks , Queues etc etc. So pointers are base for anything to handle dynamically within C . It helps to achieve efficiency , faster execution , memory management etc.
23rd Nov 2020, 3:46 PM
Kuber Acharya
Kuber Acharya - avatar
0
Thanks bro
23rd Nov 2020, 4:18 PM
Sreenesh
Sreenesh - avatar
0
I suggest you to change your title to "...in data structures" instead of "...in structuers".
23rd Nov 2020, 11:24 PM
LastSecond959
LastSecond959 - avatar