c 语言static

c语言规定,只有定义在 全局 变量和 局部 静态变量时 才能对数组 初始化。
main(){
static int a[5]={1,2,3,45,5};

}
原文地址:https://www.cnblogs.com/danghuijian/p/4400902.html