int func2(int m, int n) { if( n ==0 ) return0; else return m +func2(m, n-1); }
Fantastic news! We've Found the answer you've been seeking!
Question:
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)?
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: