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:

Verified
Correct Answer:
Verified
Related Questions
Q11: What is the output of the following
Q12: What is the output of the following
Q13: The factorial of an integer is the
Q14: Every time a recursive function call is
Q17: The factorial of an integer is the
Q18: What is the output of the following
Q19: If the recursive function call does not
Q20: Every recursive definition may be rewritten iteratively.
Q35: What is wrong with the following recursive
Q35: What is wrong with the following recursive