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

A tow truck exerts a force of 3000 N on a car, accelerating it at 2 m/s2. What is the mass of the car? A. 9.8 kg B. 1500kg C. 3000 kg D.6000 kg
Ravi purchased n notebooks. They were 5 dollars each. Write an equation to represent the total cost c that Ravi paid
When signal lights aren’t working drivers should stop and follow the procedures use at an interception controlled by ____
PLEASE HELP!!!: What changes in your resting heart rate or recovery heart rate can you expect to occur with improved fitness?
Which phrase best defines nuclear fission? A. splitting the nucleus of the atom B. combining two nuclei C. combining two atoms chemically D. stripping the
How is perspiration related to recovery after exercise? (59 POINTS!!!!) BA) As the body perspires during exercise, water and ions are released through the skin
what was the goal of the japanese in the far east
help me for this please
Which point does the line with equation y+4=3(x-7) pass through? (7, -4) (-7, 4) (4, -7) (-4, 7)
Your marginal cost is $4.00 and the market price for your good is $2.00. At this market price, you are willing to supply ____ . goods.