国产超薄丝袜足底脚交国产_少妇愉情理伦片丰满丰满_一区二区三区中文人妻制服_久久久久88色偷偷免费_色婷婷久久久swag精品

萬能百科  > 所屬分類  > 

有以下程序int fun1(double a){return a*=a;}int fun2(double x,double y){ double a=0,b=0

有以下程序

int fun1(double a){return a*=a;}

int fun2(double x,double y)

{ double a=0,b=0;

a=fun1(x);b=fun1(y);return(int)(a+b);

}

main()

{ double w; w=fun2(1.1,2.0); …… }

程序執(zhí)行后變量 w 中的值是

A)5.21

B)5

C)5.0

D)0.0

正確答案:

C(33)C) 解析 : 題中變 量 w 的定義 為 doubl e 型 , 函 數(shù) fun2() 的定義 為 in t 型 , 按照各類數(shù)值型數(shù)據(jù)間的混合運算 , 整型數(shù)據(jù)被轉換為實型數(shù)據(jù)。

詞條內容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學等領域),建議您咨詢相關領域專業(yè)人士。

標簽