+ 1

WHAT IS RECRUSIVE FUNCTION???? FROM BEGGING...

I am a beginner plz tell me (14yrs)

21st Dec 2017, 8:37 AM
Anmol Batra
Anmol Batra - avatar
2 Réponses
+ 4
recursive function Is a function which call itself again and again the popular example of recursive function is tower of hanoi A recursive function (DEF) is a function which either calls itself or is in a potential cycle of function calls.  As the definition specifies, there are two types of recursive functions.  Consider a function which calls itself: we call this type of recursion immediate recursion. https://www.sololearn.com/learn/662/?ref=app
21st Dec 2017, 8:40 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 2
A recursive function is a function which calls itself repeatedly. function recurse{ alert("hi"); recurse(); } when this function gets called at first it tgen calls it's interdiction and this repeats infinitely or until a condition is met
21st Dec 2017, 8:53 AM
᠌᠌Code X
᠌᠌Code X - avatar