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

What do you understand by friend-functions? How are they used?

641


Who invented b language?

911


all c language question

1864


What is a stream in c programming?

588


What is the heap?

681






what is the different bitween abap and abap-hr?

1741


What are logical errors and how does it differ from syntax errors?

655


Hai what is the different types of versions and their differences

1484


how logic is used

1493


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

597


What are the advantages of the functions?

602


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2368


What is the difference between NULL and NUL?

724


What are comments and how do you insert it in a C program?

737


What is meant by gets in c?

604