What is the role of a base case in a recursive function? in c program
Answers
Answered by
2
Answer:
recursive function terminates, if with every recursive call the solution of the problem is downsized and moves towards a base case. A base case is a case, where the problem can be solved without further recursion. A recursion can lead to an infinite loop, if the base case is not met in the calls.
hope it helps you
thank u
Similar questions
Accountancy,
3 months ago
Math,
6 months ago
Physics,
6 months ago
World Languages,
10 months ago
History,
10 months ago