Stack Operations – 1 :: Discussion


4.Pushing an element into stack already having five elements and stack size of 5, then stack becomes ?
A.Overflow
B.Crash
C.Underflow
D.User flow
Answer:  Option  A
Explanation:

The stack is filled with 5 elements and pushing one more element causes a stack overflow. This results in overwriting memory, code and loss of unsaved work on the computer.

Tutorial Link:
Published by:

Comments are not available


Quick Links

GAT Subject



   Computer Science    English    Agriculture    Botany    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC    PPSC    NTS