CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp
thanhvan86

CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp

(Choose 1 answer)
Consider the following function:
void printOut(int count)
{if((count % 2) == 0)
System.err.println("StdErr: Line " + count + "");
else
System.out.println("StdOut: Line " + count + "");
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
B. 10
C. 8
D. 11
FUO

Thông tin

Category
CSD201
Thêm bởi
thanhvan86
Ngày thêm
Lượt xem
2,262
Lượt bình luận
14
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp
File size
208.7 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom