CSD201_-_1_-_FA_2023_-_FE_1030.webp
H

CSD201_-_1_-_FA_2023_-_FE_1030.webp

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


Exit (12

Thông tin

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

Image metadata

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

Share this media

Back
Bên trên Bottom