☑Kizspy.me
(Choose 1 answer)
☐ A
Consider the following function:
void printOut(int count)
{if((count % 2) == 0)
System.err.println("StdErr: Line" + count + "\n");
else
System.out.println("StdOut: Line" + count + "\n");
if(count = 0) return;
else
printOut(count-1);
}
What value for X the statement printOut(X); will print EXACTLY 5 lines to standard output (Lines start with
"StdOut:"), in the fewest number of recursive calls?
A. 9
Back
Next
B. 10
C. 8
FUO.sh
sh the exam.
D. 11