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 << f11,2) <<endl;
Return 0;
}
A) 0
B) -1
C) 5
D) -5
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q18: What is the output of the following
Q31: There can be more than one stopping
Q33: In a recursive power function that calculates
Q34: Recursive functions may return any type of
Q35: What is wrong with the following recursive
Q37: A recursive function is a function that
Q38: A stack exhibits _ behavior.<br>A) first in
Q39: Given the following code fragment, what is
Q40: What is the output of the following
Q41: A stack exhibits what behavior?