What output does the following program produce? long myfunc(int n, int r) { if (n >= 0 && r == 0) return 1; if (n == 0 && r >0) return 0; return myfunc(n - 1, r XXXXXXXXXXmyfunc(n - 1, r); } int...


What output does the following program produce?


long myfunc(int n, int r)


{


if (n >= 0 && r == 0)


return 1;


if (n == 0 && r >0)


return 0;


return myfunc(n - 1, r - 1) + myfunc(n - 1, r);


}


int main()


{


 int num, k;


 num = 7; k = 4;


 long c = myfunc(num, k);


 cout


 return 0;


}

Nov 16, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here