Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | GATE CS 1997 | Question 8

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

A language L allows declaration of arrays whose sizes are not known during compilation. It is required to make efficient use of memory. Which of the following is true?
(A) A compiler using static memory allocation can be written for L
(B) A compiler cannot be written for L, an interpreter must be used
(C) A compiler using dynamic memory allocation can be written for L
(D) None of the above


Answer: (C)

Explanation: If a language L allows declaration of arrays whose sizes are not known during compilation time. It is required to use efficient use of memory.
So a compiler using dynamic memory allocation can be written for L.

An array is a collection of data items, all of the same type, accessed using a common name.

C dynamic memory allocation refers to performing manual memory management for dynamic memory allocation in the C programming language via a group of functions in the C standard library, namely malloc, realloc, calloc and free.

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 17 Jan, 2020
Like Article
Save Article
Similar Reads