问一下c语言的static关键字问题
在http://wenku.baidu.com/view/dfff38c55fbfc77da269b111.html百度文库中,看到关于c关键字static的解释
然后我写了
test_static.c
#include<stdio.h>static int total;int f(){ static int x=9; return x--;}#include<stdio.h>#include"test_static.c"//extern int f();int main(){ printf("%d",total); f(); return 0;}