![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[单选题]
()是错误的一维数组声明语句。
A.Dim arr(1to5)
B.Dim arr(-5to0)AsSstring
C.Dim arr(-2to-5)As Integer
D..Dim arr(10)AsDouble
查看答案
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.Dim arr(1to5)
B.Dim arr(-5to0)AsSstring
C.Dim arr(-2to-5)As Integer
D..Dim arr(10)AsDouble
A.定义了一个名为a的一维数组
B.a数组有三个元素
C.a数组的下标为1~3
D.数组中的每个元素的数据类型都是int型
A.char*p=calloc(10)
B.char*p=malloc(10,1)
C.char*p=calloc(5,4)
D.char*p=malloc(10)
A.intQages=[100]
B.intages=newint[100]
C.int[ages=newint[100]
D.int()ages=newint(100)
例如,一维数组中的数据是:2 2 2 3 4 4 5 6 6 6 6 7 7 8 9 9 10 10 10。
删除后,数组中的内容应该是:2 3 4 5 6 7 8 9 10。
注意:部分源程序在文件PROGl.C中。
请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入你编写的若干语句。
A.inta[][]=newint[][];
B.inta[10][10]=newint[][];
C.inta[][]=newint[10][10];
D.int[][]a=newint[10][10];
E.int[]a[]=newint[10][10];