下列语句错误的是

下列语句错误的是
A、int a[ ]={1,2};
B、char*a[3];
C、int n=5, a[n];
D、char s[10]={"test"};
【正确答案】:C
【题目解析】:数组在定义时就要分配空间,a[n]中n为变量,不可以