Q16_93_20250728161712.webp
royal_peace

Q16_93_20250728161712.webp

☑Kizspy.me
Answer (Choose 1 answer)
☐ A
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);
}
}
Which call will result in the most recursive calls?
A. fun(1023);
B. fun(100);
C. fun(0);
D. fun(-1023);
sh the exam.
LAPTOP RUNNING

Thông tin

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

Share this media

Back
Bên trên Bottom