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
Answer:A
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
Explanation: After memory has been allocated, you can’t change the size of an array; inserting less elements than the array size wastes space, and adding more elements than the array size at run time causes Stack Overflow.