top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Haw many of you understand dynamic allocation of memory, can someone explain this in detail?

0 votes
35 views
Haw many of you understand dynamic allocation of memory, can someone explain this in detail?
posted Apr 19, 2017 by Leon Martinović

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Dynamic allocation of memory means "Memory allocated during the run time based on need". There are multiple APIs supported in C library. Using those APIs (malloc and calloc) memory can be allocated during the execution of process. Best use case is linked list data structure. Dealing with linked list you don't know how many nodes it would have in advance that's why memory for nodes are allocated whenever it needs.
Hope my explanation on dynamic memory would help somewhat.

answer Apr 20, 2017 by Harshita
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...