| |
GeekInterview.com > Interview Questions > Concepts > Data Structures
| Print | |
Question: Stack Overflow
Answer: How will you identify Stack Overflow? |
| March 03, 2009 01:02:07 |
#2 |
| bhavnajoshi |
Member Since: February 2009 Total Comments: 2 |
RE: Stack Overflow |
In software stack will overflow when there will more amount of memory required to call the stack. As we all know in every language there are different rules with the memory requirement for the stack call.
In programming if the start On modern operating systems, a typical stack has at least 1 megabyte, which is sufficient for most purposes. Under anomalous conditions, the program exceeds its stack limit. This causes a stack overflow. The two most common causes for a stack overflow is an infinite recursion, as in: int f(){ g(); } int g() { f(); } |
| |
Back To Question | |