To reach the base case in a recursive function, we generally alter the parameter by decrementing the parameter. This helps reduce the problem size with each recursive call until it reaches the base case.
How do we generally alter the parameter to get to the base case?(1 point)
Responses
adding one to the parameter
adding one to the parameter
incrementing the parameter
incrementing the parameter
decrementing the parameter
decrementing the parameter
setting the parameter to zero
1 answer