1 #include <stdio.h>
2 #include <stdlib.h>
3 /*
4 int a=0; /*此行注释开头的注释符被当做普通字符,此行注释结尾的注释符被看做是注释的结束*/
5
6 */ /* 此行开始的表示注释结束的符号由于无法匹配报错。 */
7
8 int main()
9 {
10 printf("he\n");
11 return EXIT_SUCCESS;
12 }
再看下面的代码:
#include <stdio.h>
#include <stdlib.h>
#if 0
int a=0;
#endif
int main()
{
printf("he\n");
return EXIT_SUCCESS;
}