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 tq means in chat?

1063


Do pointers store the address of value or the actual value of a variable?

1020


What are the two forms of #include directive?

1100


What's a good way to check for "close enough" floating-point equality?

1095


what is ur strangth & weekness

2329


What is volatile variable how do you declare it?

1026


What is the function of volatile in c language?

1070


Explain the array representation of a binary tree in C.

1166


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7988


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1018


what is the difference between 123 and 0123 in c?

1157


Hai what is the different types of versions and their differences

1897


What is pointer to pointer in c?

1060


How to write a code for reverse of string without using string functions?

2074


Is javascript written in c?

1015