#include<stdio.h>#include<stdlib.h>int main(){
const int n = 10; int a[n]={0}; system("pause"); return 0;
}const不是常变量吗,所以数组里的n不应该是没法编译运行的吗
在新的标准中似乎可以这样写
const int n = 10;n是个常量,int a[n]={0};用来定义常量数组是允许的。