单选题
下列对一维数组a的定义中,语法正确的是
A、
int a(10)
B、
int n=7,a[n];
C、
int n;cin>>n;int a[n];
D、
const int size=10;int a[size];
【正确答案】
D
【答案解析】
提交答案
关闭