InterviewSolution
| 1. |
Explain The Concept Of Dynamic Allocation Of Memory? |
|
Answer» In C++, memory is divided into three areas, AUTOMATIC storage (where function's variables are allocated and stored), static storage (where static data is stored and LEFT for the duration of the program's runtime) and the free storage (the memory set for the use of your code at runtime; the new and DELETE operators are used to allocate and handle space in the free storage).
In C++, memory is divided into three areas, automatic storage (where function's variables are allocated and stored), static storage (where static data is stored and left for the duration of the program's runtime) and the free storage (the memory set for the use of your code at runtime; the new and delete operators are used to allocate and handle space in the free storage).
|
|