0

Does base case mean the exit() function?

16th Jan 2017, 3:05 PM
Vignesh Subramanian
Vignesh Subramanian - avatar
2 Answers
+ 6
In recursive functions, each successive recursive call should bring you closer to a situapon in which the answer is known. A case for which the answer is known (and can be expressed without recursion) is called a base case. 
16th Jan 2017, 3:59 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
I want to give you an answer in which the answer itself is recursive, but I can't.
16th Jan 2017, 6:42 PM
Derek Raimann
Derek Raimann - avatar