answersLogoWhite

0

What is recursive methods?

User Avatar

Anonymous

11y ago
Updated: 11/5/2022

A recursive method is a method that can invoke itself. The classical example is N factorial...

int nfact (int N) {

if (N == 2) return N else return N * nfact (N - 1);

}

The example suffers from truncation issues, because N Factorial gets very large, very quickly, with relatively small values of N, and ordinary integers do not support that. The answer, however, is sufficient for the question of "what is a recursive method?"

User Avatar

Elvis Franecki

Lvl 10
2y ago

What else can I help you with?

Related Questions

Is newton rephson and successive bisection recursion or iteration?

They are iterative methods, but they can be implemented as recursive methods.


What is recursive association?

a recursive association - as a aggregation is a special form of association, so recursive aggregation can be called as recursive association ... AKASH SISODIYA ......IT ...


What does the word recursive mean?

Something that is recursive is something that repeats.


Are all recursive programs non recursive?

None of them is, obviously.


What is the definition of recursive?

The term recursive refers to the recurrence or repetition.


What is set difference between recursive and recursively enumerable but not recursive?

All recursive Languages are recursively enumerable. But not all the recursively enumerable languages are recursive. It is just like NP complete.


Is 4 9 19 39 79 159 recursive?

no it is not recursive


What does recursive mean?

Recursive refers to using a rule or procedure that can be applied repeatedly.


Why recursive solution is better for tree traversal?

Because a tree is a recursive data-structure. It's easier to write (and easier to understand) a recursive program for handling it.


What is the difference between function and recursive function?

I will explain in the easiest way the difference between the function and recursive function in C language. Simple Answer is argument of the function is differ but in the recursive function it is same:) Explanation: Function int function(int,int)// function declaration main() { int n; ...... ...... n=function(a,b); } int function(int c,int d) { ...... ...... ...... } recursive Function: int recursive(int,int)// recursive Function declaration main() { int n; ..... ..... ..... ..... n=recursive(a,b); } int recursive(int a,int b) { ..... .... .... .... } Carefully see, In the recursive Function the function arguments are same.


What is a recursive relationship?

a function that recalls itself again and again is called recursive relationship.


How can you use recursive in a sentence?

"Computer programs often use recursive subroutines to repeat operations." "The goal recursive model of the Tower of Hanoi was identified by Nowell and Simon."