...
Compiler-Design
February 13, 2024
Compiler-Design
February 13, 2024
Compiler-Design
February 13, 2024
Compiler-Design
February 13, 2024

Compiler-Design

Question 23

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
Question 23 Explanation: 
Compiler is use dynamic memory allocation then the memory will be allocated to an array at runtime.
Correct Answer: C
Question 23 Explanation: 
Compiler is use dynamic memory allocation then the memory will be allocated to an array at runtime.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x