Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do you call a function that calls itself (is this called recursion)?

I am trying to figure out what you call a function that references itself. Is this termed recursion? Or is it simply a self-referencing function?

like image 846
user858642 Avatar asked Jul 26 '11 18:07

user858642


People also ask

Is recursion a function calling itself?

A recursive function is a function that calls itself until it doesn't. And this technique is called recursion.

What is a recursive function a function that calls another function?

A recursive function is a function that calls itself one or more times in its body. Functions can also be mutually recursive, where one function is defined in terms of the second, or vice-versa. I've been programming for over 20 years without the need for recursion.

What do you mean by recursion function?

Recursive Function is a function that repeats or uses its own previous term to calculate subsequent terms and thus forms a sequence of terms. Usually, we learn about this function based on the arithmetic-geometric sequence, which has terms with a common difference between them.


Video Answer


1 Answers

It is a recursive function. Direct recursion is when a function calls itself.

like image 171
ssell Avatar answered Oct 06 '22 01:10

ssell