[ Read the following questions carefully and choose the right answer. ] 

Consider the following recursive function fun (x,y) . What is the value of fun ( 4, 3) int fun(int x, int y ) 
{
  if (x==0) 
     return y; 
    return fun (x-1, x+y); 
}

A 9

B 10

C 12

D 13

Solution

Correct Answer: Option D

Practice More Questions on Our App!

Download our app for free and access thousands of MCQ questions with detailed solutions