#include<stdio.h>
#include<iostream>
using namespace std;
static int a=1;
void fun1(void){
a=2;
}
void fun2(void){
int a=3;
}
void fun3(void){
static int a=4;
}
int main(int arg){
cout<<a<<endl;
fun1();
cout<<a<<endl;
fun2();
cout<<a<<endl;
fun3();
cout<<a<<endl;
return 0;
}
输出 1 2 2 2