Q39
MCQ2 marks, −0.67AlgorithmsMediumConsider the following recursive C function.
void get(int n)
{
if (n<1) return;
get (n-1);
get (n-3);
printf("%d", n);
}
If function is being called in then how many times will the function be invoked before returning to the ?
Sign in to save attempts.
Keys: A–D or 1–4 choose, Enter checks, ← → move between questions.
The solution is hidden while you attempt this question. It opens once you check or show the answer.