Skip to content

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

GateBrew
← GATE CSE 2015 Set 3
Questions

Q39

MCQ2 marks, −0.67AlgorithmsMedium

Consider the following recursive C function.

void get(int n)
{
    if (n<1) return;
    get (n-1);
    get (n-3);
    printf("%d", n);
}

If get(6)get(6) function is being called in main()main() then how many times will the get()get() function be invoked before returning to the main()main()?

Sign in to save attempts.

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