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

The way a story's narrator and characters are presented and developed is called
John travels 54 miles each day of his 5 day journey to Disney land. What is the distance from John’s house to Disney land? PLZZ
Plz help f(x)=2x+1 Find f(3)
Is someone really good at math I need help with my math test
whats americas president name
To register your vehicle, you'll need _____.
whats The definition of convince
write an equation of a line that is perpendicular to given line that passes through the given point 5y+2x=-15 T(5,-5)​
What best explains the graph shown below? A. Temperature is dropping because greenhouse gases are high and increasing B. Temperatures are dropping because green
How many ways are there to adjust two quantities so that they are in a given proportional relationship?