+ 1
what is recursive function??
c++
6 Réponses
+ 2
a recursive function calls the function itself
+ 2
A recursive function (DEF) is a functionwhich either calls itself or is in a potential cycle of function calls. As the definition specifies, there are two types ofrecursive functions. Consider a functionwhich calls itself: we call this type ofrecursion immediate recursion.
+ 1
one function call itself
e.g.
void foo(int n)
{
if(n==1)
return;
cout <<"n:" <<n<<end;
foo(n-1);
}
+ 1
foo(n-1)!!! i can
+ 1
course : learn : function : 7/10 recursion
0
I can't understand*