CSD201_-_1_-_FA_2023_-_FE_1030.webp
H

CSD201_-_1_-_FA_2023_-_FE_1030.webp

(Choose 1 answer)
Consider the following function:
void quiz(int n)
{if(n > 1)
{quiz(n);
quiz (n);
} System.out.print("*");
} What will happen if the statement quiz(5); is run?
A. The program keeps running until you press Ctrl-C
B. The run-time stack overflows, halting the program
C. The operating system detects the infinite recursion because of the "repeated state"
D. The results are nondeterministic


Exit 40

Thông tin

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

Image metadata

Filename
CSD201_-_1_-_FA_2023_-_FE_1030.webp
File size
53 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom