Question DSA-STK-0052
MediumA recursive function calls itself 10,000 levels deep. What might happen?
- A.
Stack overflow, because each call uses stack space
- B.
A heap overflow
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Stacks question
A recursive function calls itself 10,000 levels deep. What might happen?
Stack overflow, because each call uses stack space
A heap overflow
Sign up free to see the answer and a step-by-step explanation.
Nothing; recursion has no limit
The function runs faster