Question: How many times the function fib will be called when N is 6 ? #include int fib ( int n ) { if ( n

How many times the function fib will be called when N is 6?
#include
int fib(int n){
if (n <=1){
return n;
}
return fib(n-1)+ fib(n-2);
}
int main(void){
int N;
scanf("%d", &N);
printf("%d
", fib(N));
return 0;
}
Group of answer choices
24
26
25
23

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!