c语言:输出一个静态局部变量只在函数内部有效的例子 程序:#include<stdio.h>#include<stdlib.h>intmain(){staticinta=10;printf("hellobit\n");printf("a=%d\n",a);system("pause");return0;}结果:hellobita=10请按任意键继续... 转载... c/c++ 2023-10-28 55 点赞 0 评论 83 浏览