Science, asked by rajamanak7014, 1 year ago

Short note on free dynamic memory allocation

Answers

Answered by Arohi02
1
Dynamic allocation is when an executing programs requests that the operating system give it a block of memory.
The programs that uses this memory for some purposes. Usually the purposes is to add node to data structure . In a object oriented languages, dynamic allocation is used to get a memory for new object.
The memory comes from above static part of a data segment. Programs may request memory and may also return previously dynamically allocated memory.
memory may be returned whenever it is no longer needed.
Keeping track of allocated and deallocated memory is complicated.The modern operating system does all this.
Similar questions