單項選擇題

要為float類型變量x、y、z賦同一初值3.14,下列說明語句哪一個是正確的()。

A.floatx,y,z=3.14;
B.floatx,y,z=3*3.14;
C.floatx=3.14,y=3.14,z=3.14;
D.floatx=y=z=3.14;

微信掃碼免費搜題