作用域
常规
链接属性
int b; //external
int c(){ //external
int e;//none
int f(int g); //f external(因为是函数,必然对应代码块之外的原型),
}static
extern
Last updated
int b; //external
int c(){ //external
int e;//none
int f(int g); //f external(因为是函数,必然对应代码块之外的原型),
}Last updated
static int b; //internal
int c(){ //external
static int e; //static has no effect
}extern int b; //如果b在别的地方有定义,extern不是必须的,但是有助于可读性
static int o;
int c(){
extern int e; //external
extern int o; //still internal
}