GATE CS 2015, set 2 · Question 24 · Programming and Data Structures · Numerical answer (NAT) · 1 mark · no negative marks
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 ______.
Answer
Answer 51
Answer from the official GATE CS 2015 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes