Back to Blog

static extern修饰变量与函数的理解

头文件:扩大“全局”变量,“全局” 函数 ,让作用域更广;

全局变量:

static 变量,函数

extern 变量,函数