為什么輸出最后一行會多一個“?”
#include <stdio.h>
int main(){
??? int age = 18;
?float height = 1.85;
?char unit = 'm';
?printf("小明今年%d歲\n", age);
?printf("小明身高%fm\n", height, unit);
?printf("小明現(xiàn)在在慕課網上學習IT技術%c");
?return 0;
}
#include <stdio.h>
int main(){
??? int age = 18;
?float height = 1.85;
?char unit = 'm';
?printf("小明今年%d歲\n", age);
?printf("小明身高%fm\n", height, unit);
?printf("小明現(xiàn)在在慕課網上學習IT技術%c");
?return 0;
}
2019-11-09
舉報
2019-11-24
加了這個之后就多了個m,為什么
2019-11-09
%c 后面要有匹配的字符參數(shù)? 列如:printf("小明現(xiàn)在在慕課網上學習IT技術%c",'m');?