Computer Science, asked by sahabaz514, 8 months ago

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

Answers

Answered by kavinsiddhu758
2

Answer:

A 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

Mark me as BRAINLIEST !!!

Similar questions