Examveda

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

D. The element is ignored

Answer: Option C


This Question Belongs to Data Structure >> Stacks In Data Structures

Join The Discussion

Related Questions on Stacks in Data Structures