Skip Navigation Links
C C++
C#
Data Structures
Unix
Java
Puzzles
H1b 2009
Contact us
Advertise
Data Structures Questions & Answers
Add new question
Q.1 Explain stack overflow and underflow.
Modify answer       Delete (after enough votes question will be removed)

  If a pop operation on the stack causes the stack pointer to move past the origin of the stack, a stack underflow occurs. If a push operation causes the stack pointer to increment or decrement beyond the maximum extent of the stack, a stack overflow occurs.

Alternate Answer       Approve answer(After enough votes answer will be approved)
  If a pop operation on the stack causes the stack pointer to move past the origin of the stack, a stack underflow occurs. If a push operation causes the stack pointer to increment or decrement beyond the maximum extent of the stack, a stack overflow occurs.




 
  
Copyright 2009 GetMeValue