不知道錯(cuò)在哪
運(yùn)行成功,輸出錯(cuò)誤
hello.c:?In?function?'main': hello.c:8:58:?warning:?format?'%c'?expects?a?matching?'int'?argument?[-Wformat=] ??printf("小明現(xiàn)在在慕課網(wǎng)上學(xué)習(xí)IT技術(shù)?unit=%c"); ??????????????????????????????????????????????????????????^ 小明今年?歲?age=18 小明身高???height=1.850000 小明現(xiàn)在在慕課網(wǎng)上學(xué)習(xí)IT技術(shù)?unit=
2020-10-10
#include <stdio.h>
int main(){
? ? int age = 18;
? ?
float height = 1.85;
char unit = 'm';
printf("小明今年%d歲\n", age);
printf("小明身高%f%c\n", height, unit);
printf("小明現(xiàn)在在慕課網(wǎng)上學(xué)習(xí)IT技術(shù)");
return 0;
}