CSD201_-_SU_2024_-_Block_5_-_FE_2653.webp
C

CSD201_-_SU_2024_-_Block_5_-_FE_2653.webp

Multiple Choices
(Choose 1 answer)
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);
E. fun(1025);

Thông tin

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

Image metadata

Filename
CSD201_-_SU_2024_-_Block_5_-_FE_2653.webp
File size
81.4 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom