問題詳情

24.針對程式設計中採"Call by value"的參數傳遞方式,下列敘述何者正確?
(A)將參數的位址,傳送給被呼叫的函數
(B)將參數的值,傳送給被呼叫的函數
(C)將參數的名稱,傳送給被呼叫的函數
(D)將參數的型態,傳送給被呼叫的函數int x=0, y=0;while (x<2){ switch (x+y){ case 0: x++;case 1:case 2: y++; break;case 3: x++; break;default: y=0; break;}cout << y;}int w,x,y,z;y=3;z=19;w=y;x=z;while(w!=x){while(w>x) w=w-x;while(w<x) x=x-w;}cout << w << endl;【請接續背面】int test(int a) {if (a > 1) return test(a - 2) + 3;return a;}int main(){ cout << test(10);return 0;}void show(int n){ if (n>1){ if (n % 2 !=0) show (n+1);else show (n/2);cout << '#';}}

參考答案

無參考答案

內容推薦

內容推薦