您的位置:首页 > 编程语言 > C语言/C++

【C语言】注释不可以嵌套使用的举例

2016-05-30 17:16 585 查看
#include<stdio.h>
#include<stdlib.h>

void squares(int limit)
{
/*Commment out this entire function
int i;    /*loop counter*/
/*
** Print table of squares
*/
for (int i = 0; i < limit; i += 1)
{
printf("%d%d", i, i*i);
}
End of commment out code*/

}

int main()
{
squares(2);
system("pause");
return 0;
}


本文出自 “Han Jing's Blog” 博客,请务必保留此出处http://10740184.blog.51cto.com/10730184/1741672
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: