How many base cases are in the functionabove?
1 answer:
Answer:
The answer is (b). 1.
Explanation:
In the code there is only 1 base case .
the base case is as following:-
if(n==0)
return 0;
this is the base case.
Base case is the most important statement in the function that uses recursion because without base case the recursion calls will keep on going and we will get a run time error .
You might be interested in
Answer:
try putting a lot of rice on the screen.
Explanation:
if it got water in it that should help it.
Winter is such a season. Travel is lower to colder climate areas such as Canada, but higher to warmer climate areas like Columbia.
It loses power and most likely stops working
Answer:
they can view if you left the page on the teacher side of the website
Explanation:
i have made a page just for this