What would you like to do?

# What is recursion explain with example?

Would you like to merge this question into it?

#### already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

#### exists and is an alternate of .

Recursion is when a function (procedure) calls itself.
Example:

int Fib (int n)
{
if ((n==1)(n==0))return 1;
else return Fib(n-1) + Fib(n-2);
}
+ 25 others found this useful
Thanks for the feedback!

# Write and explain recursive backtracking algorithm for n-queens?

This is not a question, this is your homework. For a start, read this: https://en.wikipedia.org/wiki/Eight_queens_puzzle

  yes

# What is bcnf explain with example?

define BCNF. Explain with appropriate example

# Explain the term Recursion with example?

  recursive definition of a function is defined in which the function is defined in terms of itself.here the fuction calls itself repetitively.

# What is the purpose of a stack in implementing a recursive procedure Explain?

there is no a prior limit on the depth of nested recursive calls (that a recursive function may call itself any no. of times), we may need to save an arbitrary number of regis

# What is encapsulation explain with an example?

  Encapsulation is also known as information hiding, it is to protect data from the client using the classes but still allowing the client to access the data, but not modi

# What is recursiveness?

Assuming you mean "recursion", recursion is a function calling itself. A good example of when you would use recursion is for a directory walker. You would call the function, p

# Can you explain by example the consideration in communication?

hi frns,consideration in communication means preparing the message keeping receiver in mind and understanding the consequences of your speech.

# What is persistence in oops explain with example?

The phenomenon where the object outlives the program execution time & exists between execution of a program is known as persistance

# Adjective example and explain the examples?

adjectives describe things (nouns). A large dog. The adjective is large it describes the dog (noun). A big black dog. The adjectives are big and black they describe the do

Pizza Hut

# What is recursion in c explain with the help of an example?

Recursion is the technique of a function calling itself, rather than iterating through the use of loops. The classic example of a recursive function is the computation of N Fa

# Explain with an example Insertion Sort?

poda myre..........

# What is recursive?

In computer programming, a function can call another function. If a function calls itself, it is said to be recursive. Doing this correctly can it quite simple to solve certai

# Can you explain figures of speech with examples?

List of Figures Of Speech Personification Personification is all about adding a human trait to an inanimate object or an abstraction. For example: The picture in that magazin

# What is lvalue explain with example?

left-value: an expression that can be target of assignement. eg: array[x+1]->field = 100; # okay 100 = 200; # NOT okay: not lvalue intvar = 100; # okay (char *)intva

# What is np explain with the help of example?

Acrynym fider has 119 meanings for NP which one(s) are you interested in? Nurse Practitioner Nepal National Park Northern Pacific Noun Phrase New Patient No Problem Not Possi