+ 1

what is recursive function??

c++

18th Jul 2016, 6:52 PM
krishna desai
6 Respostas
+ 2
a recursive function calls the function itself
18th Jul 2016, 9:09 PM
Spencer Marshalls
Spencer Marshalls - avatar
+ 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.
20th Jul 2016, 2:31 AM
Abhishek Singh
Abhishek Singh - avatar
+ 1
one function call itself e.g. void foo(int n) { if(n==1) return; cout <<"n:" <<n<<end; foo(n-1); }
18th Jul 2016, 7:05 PM
S1xe
S1xe - avatar
+ 1
foo(n-1)!!! i can
18th Jul 2016, 7:08 PM
krishna desai
+ 1
course : learn : function : 7/10 recursion
18th Jul 2016, 7:08 PM
Dorian
0
I can't understand*
18th Jul 2016, 7:09 PM
krishna desai