CSD201_-_SU_2023_-_Block_5_-_FE_736.webp
Kokushibo91

CSD201_-_SU_2023_-_Block_5_-_FE_736.webp

(Choose 1 answer)
Consider the following function:
int fun(int a, int n)
{ if(n == 0) return(1);
int t =fun(a,n/2);
if(n%2==0)
return(t*t);
else
return(t*t*a);
} For the call fun(3, 3), how many calls to fun will be made, including the original call?
A. 2
B. 3
C. 8
D. 9
antonis ni

Exit 20

Thông tin

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

Image metadata

Filename
CSD201_-_SU_2023_-_Block_5_-_FE_736.webp
File size
46.9 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom