Question: public int question1(int x, int y) { if (x == y) return 0; else return question(x-1, y) + 1; } If the method is called
public int question1(int x, int y)
{
if (x == y) return 0;
else return question(x-1, y) + 1;
}
If the method is called as question1(5, 3), it will return 2.
Question 7 options:
| True | |
| False |
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
