程序:
#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
请按任意键继续. . .
文章标签 c语言:静态局部变量 函 文章分类 C/C++ 后端开发
程序:
#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
请按任意键继续. . .
static 修饰局部变量{…stati
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M