Computer Science, asked by mehediac75, 6 months ago

What is the role of a base case in a recursive function? in c program

Answers

Answered by vermaanya0106
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