Which of the following operations is not possible in a stack implemented using…
2023
Which of the following operations is not possible in a stack implemented using an array, if the stack is full?
- A.
Print
- B.
Pop
- C.
Peek
- D.
Push
Attempted by 221 students.
Show answer & explanation
Correct answer: D
An array-based stack has a fixed memory size. When the stack is completely full, attempting to insert a new element using the Push operation triggers a Stack Overflow error. Read and delete operations remain completely functional. Therefore, Option D is the correct answer.