edited by
8,319 views
24 votes
24 votes

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 structure.
  4. Those that use global variables.
edited by

3 Answers

Best answer
39 votes
39 votes
Those that allow dynamic data structure.

malloc etc uses memory from heap area.
edited by
5 votes
5 votes

C

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

Answer:

Related questions

28 votes
28 votes
5 answers
1
go_editor asked Sep 29, 2014
14,088 views
Which data structure in a compiler is used for managing information about variables and their attributes?Abstract syntax treeSymbol tableSemantic stackParse table
12 votes
12 votes
5 answers
2
go_editor asked Sep 30, 2014
6,495 views
$25$ persons are in a room. $15$ of them play hockey, $17$ of them play football and $10$ of them play both hockey and football. Then the number of persons playing neithe...
7 votes
7 votes
1 answer
3
go_editor asked Sep 30, 2014
3,874 views
Choose the most appropriate word from the options given below to complete the following sentence:If we manage to __________ our natural resources, we would leave a better...