CSD201_-_SP_2025_-_Block_5_-_1_3848.webp
royal_peace

CSD201_-_SP_2025_-_Block_5_-_1_3848.webp

☑Kizspy.me
(Choose 1 answer)
☐ A
☐ E
Consider the following function:
void fun(int n)
{if (n < 0)
{System.out.println("-");
}
fun(-n);
else if(n<10)
System.out.println(n);
else
{fun(n/10);
System.out.println(n%10);
Back
Next
FUO.sh
sh the exam.
}
}
Which call will result in the most recursive calls?
A. fun(1023);
B. fun(100);
C. fun(0);
D. fun(-1023);
E. fun(1025);

Thông tin

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

Share this media

Back
Bên trên Bottom