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

1. What do the crops grown by the Caddo tell you about their civilization? They had limited food supplies. They maintained well-developed farms. They only grew
passing through(-9,-2) and parralel to the line whose equation is y=-5x+3 write an equation for the line in slop intercept form
Carbohydrates: select one: a. in the form of oligosaccharides are often covalently bonded to proteins and lipids on the outer cell surface, where they serve as
When x = 3 and y = 5, by how much does the value of 3x2 – 2y exceed the value of 2x2 – 3y ? a. 4 b.14 c. 16 d.20 e. 50
An adult male alligator may weigh 300 pounds. A newly hatched alligator weighs only one ninth 1/9 pound. The adult weighs how many times the​ hatchling?
Simplify 4 to the 7th over 5 squared all raised to the 3rd power. 4 to the 10th over 5 to the 5th 4 to the 4th over 5 4 to the 21st over 5 to the 6th 12 t
I need help please fast!!
Whose power in the Senate is equal to the power of the Speaker of the House? A.president pro tempore B.president of the Senate C.majority leader D.Majority w
Expanded form of 164.38
What issue was discussed at the seneca falls convention?