hello.c: In function 'main':
hello.c:8:58: warning: format '%c' expects a matching 'int' argument [-Wformat=]
printf("小明现在在慕课网上学习IT技术 unit=%c");
^
小明今年?岁 age=18
小明身高?? height=1.850000
小明现在在慕课网上学习IT技术 unit=#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("小明现在在慕课网上学习IT技术");
return 0;
}