小编sah*_*dar的帖子

为什么我会丢失终止字符?

//example1
#include<stdio.h>

int main()
{
  printf("hello World"
  );

}

//example2
#include<stdio.h>

int main()
{
  printf("hello World
  ");

}
Run Code Online (Sandbox Code Playgroud)

在示例1中,编译器未显示任何错误,但是在示例2中,编译器显示了missing terminating " character错误。为什么?

c linux gcc compiler-errors

0
推荐指数
1
解决办法
74
查看次数

标签 统计

c ×1

compiler-errors ×1

gcc ×1

linux ×1