Question
A program requests memory dynamically with malloc or new. From which process region is the memory typically obtained?
Select an option. Your answer will be checked instantly.
Correct Answer: A. Heap
Explanation:
The heap supports dynamic memory allocation whose lifetime is controlled by the program.
It is distinct from the automatically managed call stack.
Leave a Reply