單項選擇題

下面語句中強制類型轉換使用正確的是()

A.int a=(int)12.0;
B.int a=(float)12.0;
C.byte a=(long)12;
D.byte a=(char)128;

微信掃碼免費搜題