没有搜到到结果?点击这里求解答/求资源。
【单选题】
若有以下定义,数组元素a[3]的值()。int a[5]={1,2,3}

0
1
2
3
【单选题】
假定一个函数的二维数组参数说明为char w[][N],与之等价的指针参数说明为( )。

char(*w)[N]
char *w [N]
char(*w) N
char** a
【单选题】
假定一个函数的二维数组参数说明为char w[][N],与之等价的指针参数说明为( )。

char(*w)[N]
char *w [N]
char(*w) N
char** a
【单选题】
以下能对一数组a进行正确初始化的语句( )。

int a[10]=(0,0,0,0)
int a[10]={}
int a[]={0};
int a[10]={10*1};
【单选题】
有说明语句int *p=new int[10];访问动态数组元素的正确语句()

int a=p;
int a=*p;
delete int[]p
delete p int[10]
【单选题】
下面关于数组声明和初始化的语句那个有语法错误?( )

int a1[]={3,4,5};
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定义的数组元素有( )个。

45
54
40
11
【单选题】
下面哪一个合法的数组声明和构造语句( )

int[] ages = [100];
int ages = new int[100];
int[] ages = new int[100];
int() ages = new int(100);
【单选题】
假定要动态分配一个类型为Worker的具有n个元素的数组,并由r指向这个动态数组使用的语句表达式为( )。

malloc(n)
calloc(n,sizeof(struct Worker))
calloc(n*sizeof(struct Worker))
realloc(n,sizeof(struct Worker))
【单选题】
假定要动态分配一个类型为Worker的具有n个元素的数组,并由r指向这个动态数组使用的语句表达式为( )。

malloc(n)
calloc(n,sizeof(struct Worker))
calloc(n*sizeof(struct Worker))
realloc(n,sizeof(struct Worker))