The following C function is an example of what type of recursion?
The following C function is an example of what type of recursion?
int f(int n)
{
if(n==1)
return 1;
else if(n==0)
return 0;
else
return(f(n-1)+f(n-2));
}
Show answerHide answer
Correct answer: (B) Binary