Top

Discussion

Which languages necessarily need heap allocation in the run time environment?

  • A.Those that support recursion
  • B.Those that use dynamic scoping
  • C.Those that use global variables
  • D.Those that allow dynamic data structures

Answer: D

Heap allocation is needed for dynamic data structures like tree, linked list, etc.

No comment is present. Be the first to comment.
Loading…

Post your comment