【发布时间】:2019-06-22 04:01:41
【问题描述】:
//example1
#include<stdio.h>
int main()
{
printf("hello World"
);
}
//example2
#include<stdio.h>
int main()
{
printf("hello World
");
}
在示例 1 中,编译器没有显示任何错误,但在示例 2 中,它显示了 missing terminating " character 错误。为什么?
【问题讨论】:
-
在 exapmle2 中,编译器无法在同一行中找到结尾
",而在 example1 中却可以。 -
你可能想使用
printf("hello World" "second line");
标签: c linux gcc compiler-errors