Bloomberg interview question

Write a function to cause stackoverflow.

Interview Answers

Anonymous

Apr 13, 2010

That is not true if the compiler use tail recursion. Using tail recursion will not cause a stack overflow.

Anonymous

Jan 13, 2011

Call a function inside of itself with no exist condition

Anonymous

Mar 12, 2010

Call a function from itself in an infinite loop.