Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is indirect recursion? give an example?

Answer Posted / vishwanath pillay

void f1()
{
.....
if(condition)
{
f2();
....
}
}
void f2()
{
....
....
f1();
}

void main()
{
f1();
}


On closer look u'll find that the program goes lopping
itself again and again untill the condition in satified.
Once the cond. is met it will exit the loop and terminate
the prog.
But there is 1 important thing that:- the func's call is
indirect.
this is Indirect Recurssion.

Is This Answer Correct ?    29 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the stack?

1110


What is the full form of getch?

1286


a c code by using memory allocation for add ,multiply of sprase matrixes

2809


What is class and object in c?

1125


what are non standard function in c

1916


What are the three constants used in c?

997


What are data types in c language?

1062


What are the advantages of c language?

1099


Differentiate between static and dynamic modeling.

1141


What are the advantages of using new operator as compared to the function malloc ()?

1354


Which header file is used for clrscr?

1063


What is difference between far and near pointers?

1048


Write a factorial program using C.

1087


What is far pointer in c?

1321


How do I swap bytes?

1083