Q17_81_20250904125527.webp
Naoya76

Q17_81_20250904125527.webp

  • Media owner Naoya76
  • Ngày thêm
☑Kizspy.me
Answer (Choose 1 answer)
☐ A
Consider the following function:
void quiz (int n)
{if (n> 1)
{quiz(n);
Back
Next
FUQ.sh
sh the exam.
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

Thông tin

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

Share this media

Back
Bên trên Bottom