Task:(only diagrams are needed no code)
Draw stack frame diagrams of the following recursive function if 200 is entered by the user :
Code:
int FibonacciSeries(int n)
{
if((n==1)||(n==0)) return(n);
else return(FibonacciSeries(n-1)+FibonacciSeries(n-2));
}
The answer to your question is provided in the image:
Comments
Leave a comment