Consider the following C function. int fun(int n) { int x=1, k; if (n==1)…
PYQ GATE 2015
Consider the following C function.
int fun(int n) {
int x=1, k;
if (n==1) return x;
for (k=1; k<n; ++k)
x = x + fun(k) * fun(n-k);
return x;
}The return value of fun(5) is ________.
Attempted by 106 students.
Sign up free to check your answer
Sign up freeLoading lesson…

