0
What is the auctal use in using pointers in structuers
What is the use basically? Memory efficiency or effortless? I don't understand
3 Respostas
+ 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.
0
Thanks bro
0
I suggest you to change your title to "...in data structures" instead of "...in structuers".