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

Which friend is experiencing an internal barrier to physical fitness? Mark lacks access to fitness equipment. Tyler has trouble finding a safe area to work ou
What roles did the Shi'a variant of Islam play in the rise of the Safavid dynasty and the state, society, and artistic expression that flourished in Persia unde
Which of the following is characteristic of the product of the p53 gene? A) It causes cell death via apoptosis. B) It speeds up the cell cycle. C) It allows c
Need help with this one, please be sure to show work, thank you!​
which early groups migrated into modern day turkey and Iran from southern Russia and later formed empires? A. akkadians and egyptians B. hyksos and babylonians
What is the value of v in the equation 10 -6v =-104
Why does bello often carry a heavy metal stick when he performs
Which description best defines MN¯¯¯¯¯¯¯ ? the set of point M, point N, and all the points between point M and point N the set of all points that are collinea
change the percent to a fraction 1/27%
what are the best tips for studying your exam