Question: Consider the following function/method: int test(int a, int b) { if (a < b) return 0; else return (1 + test(a-b, b)); } What is
Consider the following function/method:
int test(int a, int b) { if (a < b) return 0; else return (1 + test(a-b, b)); }
What is returned by the call test(15, 4)?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
