Question: In the following code, the variable indentAmt _ _ _ _ _ at each recursive call. public static int sum ( int n , String
In the following code, the variable indentAmt at each recursive call.
public static int sumint n String indentAmt
int sum ;
if n
System.out.printlnindentAmt "your value is: n;
return ;
else
System.out.printlnindentAmt "your value is: n;
sum n sumn indentAmt ;
System.out.printlnindentAmt "Returning pos n;
return sum;
Group of answer choices
remains constant
is incremented
is incremented or decremented based on the call
is decremented
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
