問題詳情

int test(int i) {if (i < 5)return i;elsereturn test(i-1)+test(i-2);}void main() {int x;x=test
(A);}若A 的值為6,請問test 這個function 總共會被呼叫幾次?
(A) 2
(B) 3
(C) 4
(D) 5

參考答案

答案:D
難度:困難0.363636
統計:A(10),B(13),C(19),D(24),E(0)