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 / j j ramesh / ap / mca / jjcet

void fun1();
void fun2();
int i=0;

void main()
{
clrscr();
printf("\n\n\n");

fun1();

getch();
}

void fun2()
{
if(i<5)
{
printf("Recursion from fun2 to fun1 which is indirect
recursion\n");
i++;
fun1();
}
}
void fun1()
{
fun2();
}

Is This Answer Correct ?    10 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two types of functions in c?

1006


What is the use of sizeof?

1013


Write a program to print numbers from 1 to 100 without using loop in c?

1081


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1975


What are different types of pointers?

1068


Explain how do you determine the length of a string value that was stored in a variable?

1152


What are different storage class specifiers in c?

1091


how to find binary of number?

4442


Explain the priority queues?

1073


What are the two forms of #include directive?

1163


how logic is used

1966


What is a node in c?

971


Is it possible to execute code even after the program exits the main() function?

1336


Which is better between malloc and calloc?

1198


what is a function method?give example?

2361