Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2015 Set 2
Questions

Q11

NAT1 markAlgorithmsMedium

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)fun(5) is ______.

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.