问题
单项选择题
下面的语句中错误的是( )。
A.int a=5;int x[a];
B.constint a=5;int x[a];
C.int n=5;int *p=new int[n];
D.const int n=5;int *p=new int[a];
答案
参考答案:A
下面的语句中错误的是( )。
A.int a=5;int x[a];
B.constint a=5;int x[a];
C.int n=5;int *p=new int[n];
D.const int n=5;int *p=new int[a];
参考答案:A