Bloomberg LP Interview Question
Financial Software DevelopersLocal variables that aren't dynamically allocated (malloc/calloc) are placed on the stack. Stack is a LIFO (last-in-first-out) structure, so when you enter a new function the local variables are pushed onto the stack. If you keep going, deeper and deeper into nested functions you will fill up the stack and overflow.
Thanks for posting the question. It was very useful
- Anonymous January 24, 2011