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

I NEED HELP ASAP !!!!!!!!!!!!!!!!!!!!!1
what is the area in square centimeters of the isosceles trapezoid below?
Question 1 Which is the largest value?
Tell whether the angles are adjacent or vertical. Then find the value of x.​
Find the surface area of the triangular prism. Be sure to include the correct unit in your answer.
what is the smartest animal?
Using the diagnosis Alphabetic Index entry for Syndrome, Respiratory Distress Acute J80 Adult J80 Child J80 Idiopathic J84.114 Newborn (idiopathic) (type I) P22
Pleaseee hurry and correct answers only what is the collective term for the three different ways adenosine triphosphate (atp) is generated? a. reaction systems
Match the nation in column 1 to its description in column 2. Indonesia ? Inhabited by the Maori ? Longtime Spanish colony New Zealand ? Fourth-largest populatio
Less than 0.1% of the energy in a food chain generally make it from the sun to quartenary consumers, True or false