gqbbyd4630 gqbbyd4630
  • 11-12-2018
  • Computers and Technology
contestada

If you create and invoke a recursive function without accounting for a base case, what can go wrong?

Respuesta :

tonb
tonb tonb
  • 11-12-2018

Every recursive function should have an exit criterion (=handling the base case) to exit the recursion.

Without it, it wil recurse forever, until system resources run out (typically the call stack will overflow and your program will crash).

Answer Link

Otras preguntas

Brandon just bought a new stereo system for his home office. He will pay personal property tax sales tax corporate tax marginal tax
How do you know all these answers were you a teacher???
Solve the system using substitution. Please write the solution in the form of a coordinate pair ( x, y ) SHOW YOUR WORK! 15x = 30 y + 3x = 12 GIVING BRAINIEST T
What role did the American Revolution and French Revolution play in the developing Latin American Revolutions?
1.Find the length s. Round the answer to three decimal places.
Who invented the wheel? How did it change the way people did things? Give at least 3 reasons.
What is 30 rounded to the nearest whole number percent?
How did men like William Lloyd Garrison, Reverend Lovejoy, and Fredrick Douglass participate in the abolitionist movement? THE FIRST ANSWER GETS BRANILEST AND 5
if f(x)=x+7 g(x)= x-7 find g(f(x))
Given the function f(x)= 3(x-2)² + 5, what is f(-1)?