1.

Which of the following is an example of static memory allocation?(a) Linked list(b) Stack(c) Queue(d) ArrayThis question was posed to me in class test.My doubt stems from Static vs Dynamic Memory Allocation in division Dynamic Memory Allocation in C of C

Answer»

Correct ANSWER is (d) Array

To explain I would say: Array is an example of STATIC MEMORY allocation whereas LINKED LIST, queue and stack are examples for dynamic memory allocation.



Discussion

No Comment Found

Related InterviewSolutions