課程
/后端開發(fā)
/C
/C語言入門
????? int age = 15;錯了嗎
2016-09-26
源自:C語言入門 2-4
正在回答
weight前用float或double都行(后面是實數(shù)),char是定義字符,long定義長整型
慕先生6498225
慕粉3982940 提問者
float?weight = 82.5或者double weight=82.5? 小數(shù)類型為實型 定義錯了
int age; age=15;先定義 在賦值
?int age = 15;
是沒錯的,但你后面的
? ? ? ? long char weight = 82.5;
? 應(yīng)改為double型的:
double weighet=82.5
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
1 回答int和short int 和short 的區(qū)別
2 回答int、short int、long int、unsighed int、unsighed long int、unsighed short int的取值范圍的計算方法是什么
3 回答int和short int有什么區(qū)別嗎
2 回答short int與int之前是否沒區(qū)別?
1 回答為啥身高要用short 不用int
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-09-26
weight前用float或double都行(后面是實數(shù)),char是定義字符,long定義長整型
2016-09-26
float?weight = 82.5或者double weight=82.5? 小數(shù)類型為實型 定義錯了
2016-09-26
int age; age=15;先定義 在賦值
2016-09-26
?int age = 15;
是沒錯的,但你后面的
? ? ? ? long char weight = 82.5;
? 應(yīng)改為double型的:
double weighet=82.5