单选题

下列对一维数组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];

发表评论

登录 后再回复