0
Can anyone tell me what is meant by base case ??
1 Antwort
0
base case is meant to stop your recursive code from recursing to infinity.
for example a factorial() function's base case would be 1 and it would be the last recursion step, which then would be returned to previous calls letting them evaluate, and eventually finish the recursive call.