Question: What does the following code print when i = 1? public static void rec2 (int i) { if (i==0) { System.out.print(i + );
What does the following code print when i = 1? public static void rec2 (int i) { if (i==0) { System.out.print(i + " "); } } else { } for (int j = 0; j
Step by Step Solution
There are 3 Steps involved in it
The code in the image is a recursive Java function named rec2 which accepts an integer parameter i W... View full answer
Get step-by-step solutions from verified subject matter experts
