Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux编程 > » 正文

c和指针读书笔记——宏用于注释代码的小技巧

来源: 未知 分享至:
 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;
}

Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史