+1 vote
in Data Structures & Algorithms I by (110k points)
Array implementation of Stack is not dynamic, which of the following statements supports this argument?

(a) space allocation for array is fixed and cannot be changed during run-time

(b) user unable to give the input for stack operations

(c) a runtime exception halts execution

(d) improper program compilation

My question comes from Stack using Array topic in division Abstract Data Types of Data Structures & Algorithms I

The question was posed to me in my homework.

1 Answer

+1 vote
by (412k points)
selected by
 
Best answer
Right option is (a) space allocation for array is fixed and cannot be changed during run-time

For explanation: You cannot modify the size of an array once the memory has been allocated, adding fewer elements than the array size would cause wastage of space, and adding more elements than the array size at run time would cause Stack Overflow.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...