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

Place the #include statement must be written in the program?

574


Between macros and functions,which is better to use and why?

1571


What are the types of type specifiers?

624


Where are local variables stored in c?

571


Explain the properties of union. What is the size of a union variable

718






i want to know the procedure of qualcomm for getting a job through offcampus

1941


How do I determine whether a character is numeric, alphabetic, and so on?

623


How to get string length of given string in c?

610


What is .obj file in c?

649


What is wrong with this statement? Myname = 'robin';

823


What are identifiers in c?

636


How are variables declared in c?

600


How can you increase the size of a statically allocated array?

619


What are the string functions? List some string functions available in c.

606


Why are algorithms important in c program?

623