Q19.webp
quanghoa92

Q19.webp

Question: 19
(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. 9
D. 8

Thông tin

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

Share this media

Back
Bên trên Bottom