logo

Crowdly

  What is the output of the following recursive function when cal(2,3) is called...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

 What is the output of the following recursive function when cal(2,3) is called?

int cal(int a, int b)

{

if (b==1)

return 1;

else

return a + cal(a,b-1);

}

More questions like this

Want instant access to all verified answers on moovit.vit.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!