【单选题】
若有以下定义,则数组元素a[3]的值是()。int a[5]={1,2,3}
【单选题】
假定一个函数的二维数组参数说明为char w[][N],则与之等价的指针参数说明为( )。
【单选题】
假定一个函数的二维数组参数说明为char w[][N],则与之等价的指针参数说明为( )。
【单选题】
以下能对一维数组a进行正确初始化的语句是( )。
【单选题】
有说明语句int *p=new int[10];访问动态数组元素的正确语句是()
【单选题】
下面关于数组声明和初始化的语句那个有语法错误?( )
②
String a2[]={string1,string1,string1};
③
String a3[]=new String(3);
④
int[][] a4=new int[3][3];
【单选题】
语句Dim t(2 to 6,-3 to 5)As Integer定义的数组元素有( )个。
【单选题】
下面哪一个是合法的数组声明和构造语句( )
②
int ages = new int[100];
③
int[] ages = new int[100];
④
int() ages = new int(100);
【单选题】
假定要动态分配一个类型为Worker的具有n个元素的数组,并由r指向这个动态数组,则使用的语句表达式为( )。
②
calloc(n,sizeof(struct Worker))
③
calloc(n*sizeof(struct Worker))
④
realloc(n,sizeof(struct Worker))
【单选题】
假定要动态分配一个类型为Worker的具有n个元素的数组,并由r指向这个动态数组,则使用的语句表达式为( )。
②
calloc(n,sizeof(struct Worker))
③
calloc(n*sizeof(struct Worker))
④
realloc(n,sizeof(struct Worker))