Vidyalelo
Data Structure · Q35

Stacks in Data Structures

Programming · Data Structure · question 35

Q35

What happens when you push an element onto a stack that is already full (in a fixed-size stack)?

A.
The element overwrites the existing one
B.
The stack shrinks
C.
An overflow error occurs
Answer
D.
The element is ignored

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board