What is the base case of a recursion? A condition that prevents a recursive call to the function A condition that results in a recursive call to the function The starting value of the variable used to control the recursion The values of the function variables just before the first recursive call to the function
do you have any idea right now
or like a guess
I was thinking either A or C
Yeah I think A as well A definition i found said "The base case is a way to return without making a recursive call. In other words, it is the mechanism that stops this process of ever more recursive calls and an ever growing stack of function calls waiting on the return of other function calls." From this site right here ~ https://www.usna.edu/Users/cs/choi/ic210/lec/l26/lec.html#:~:text=The%20base%20case%20is%20a,return%20of%20other%20function%20calls. "The base case is a way to return without making a recursive call" That basically restated the first answer choice, so i believe A is our answer
Ok thank you
Join our real-time social learning platform and learn together with your friends!