Solved

What Is the Output of the Following Code Fragment

Question 12

Multiple Choice

What is the output of the following code fragment?
Int f1int base, int limit)
{
Ifbase > limit)
Return -1;
Else
Ifbase == limit)
Return 1;
Else
Return base * f1base+1, limit) ;
}
Int main)
{
Cout << f12,4) <<endl;
Return 0;
}


A) 2
B) 3
C) -1
D) 6

Correct Answer:

verifed

Verified

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

Related Questions