单选题 下面的语句中错误的是( )。
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
【答案解析】