Solved

What Is the Output of the Following Code Fragment

Question 15

Multiple Choice

What is the output of the following code fragment?
Int f1int n, int m)
{
Ifn < m)
Return 0;
Else ifn==m)
Return m+ f1n-1,m) ;
Else
Return n+ f1n-2,m-1) ;
}
Int main)
{
Cout << f11,4) ;
Return 0;
}


A) 0
B) 2
C) 4
D) 8
E) infinite recursion

Correct Answer:

verifed

Verified

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

Related Questions