程序:
#include <stdio.h>
#include <stdlib.h>
int main()
{
static int a = 10;
printf("hello bit\n");
printf("a = %d\n", a);
system("pause");
return 0;
}
结果:
hello bit
a = 10
请按任意键继续. . .
本文出自 “岩枭” 博客,请务必保留此出处http://yaoyaolx.blog.51cto.com/10732111/1717974
本文展示了一个简单的C语言程序示例,程序输出hello bit并打印变量a的值为10。通过这个例子,读者可以了解到基本的C语言语法和静态变量的使用。
736

被折叠的 条评论
为什么被折叠?



