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

What is the value of x?
In urban areas, fine particles caused by dust or pollution often cloud the air close to the ground. Which of the following terms best defines this event? A. ozo
What are three nonliving things in the sloth's environment? Choose three correct answers. A thunder B clouds C rain D other sloths E trees
why is the appeal so important in our justice system?
Factor 4v+20. Write your answer as a product with a whole number greater than 1.
How can evidence from an experiment be explained in relationship to the hypothesis? as a prediction as a question as an inference as a conclusion
100 PTS TO THE FIRST PERSON WHO ANSWERS IT CORRECTLY
Which of the following substances will cause the least temperature change if the same amount of each substance is added 1.0 kg of water ?
whats the number of pi
The solutions to a² - 10a = 0 are 1. 0 and -10 2. 0 and 10 3. 1 and 10 4. 1 and -10