Question: int func2(int m, int n) { if( n ==0 ) return0; else return m +func2(m, n-1); } a) What is the limiting condition of the

int func2(int m, int n) {
if( n ==0 )
return0;
else
return m +func2(m, n-1);
}


a) What is the limiting condition of the code above?
a. n >= 0 b. m > n
c. m >= 0 d. n >m

b) What is the output of func2(2,3)?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!