Multiple choice

Which languages necessarily need heap allocation in the runtime environment?

  1. Those that support recursion.

  2. Those that use dynamic scoping.

  3. Those that allow dynamic data structures.

  4. Those that use global variables.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Dynamic memory allocation is maintained by heap data structure. So to allow dynamic data structure heap is required