Question: [ Select all that are true ] What is the purpose of a base case in a recursive function? q , To stop the recursion
Select all that are true What is the purpose of a base case in a recursive function?
To stop the recursion when a solution or partial solution can be returned
To continue making recursive function calls
To call helper functions when the recursive function can't continue
To prevent infinite recursion and stack overflow
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
