What is the value of $f(4)$ using the following $C$ code:
int f(int k){ if(k<3) return k; else return f(k-1) * f(k-2) + f(k-3); }
$f(4)=f(3)*f(2)+f(1)=2*2+1=5$
Option $(A)$ is correct.
64.3k questions
77.9k answers
244k comments
80.0k users