What is base case?
1 Like
Base case is the termination condition that defines when the recursion should stop. It prevents the function from infinitely calling itself and ensures that the recursion reaches a stopping point.
Answered By
What is a recursive function? Write one advantage of recursive function.
What are the two cases required in a recursive function?
What is recursive case?
Is it necessary to have a base case in a recursive function? Why/Why not?