0

Can anyone tell me what is meant by base case ??

26th Nov 2016, 10:45 AM
Munaf Mulani
Munaf Mulani - avatar
1 Respuesta
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.
26th Nov 2016, 10:54 AM
asdadasdsaczxc