Solved

What Is the Output of the Following Code Fragment

Question 11

Multiple Choice

What is the output of the following code fragment?
Int f1int x, int y)
{
Ifx<0 || y<0)
Return x-y;
Else
Return f1x-1,y) + f1x,y-1) ;
}
Int main)
{
Cout << f12,1) <<endl;
Return 0;
}


A) 0
B) -1
C) 5
D) -5

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions