How Does Dynamic Allocation of Memory Work?
The key idea is to regard all the available memory as a large global pool that can be used for any purpose whatsoever. When you need memory, you ask for just the amount you need; it is given to you from the global pool and is marked as being no longer `free’ so that a subsequent request for memory does not allocate this same block again for a different purpose.
Related Questions
- Whats Difference Between Static And Dynamic Memory Allocation?
- Whats Difference Between Static And Dynamic Memory Allocation?
- What is difference in static and dynamic memory allocation?
- What is difference in static and dynamic memory allocation?
- How Do You Perform Dynamic Memory Allocation In C++?
- How Do You Perform Dynamic Memory Allocation In C++?