Home »
MCQs »
C++ MCQs
Which type of memory is allocated using dynamic memory allocation?
152. Which type of memory is allocated using dynamic memory allocation?
- Stack
- Heap
- Static
- Program code
Answer: B) Heap
Explanation:
When we use dynamic memory allocation, memory is allocated in the heap segment.