网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
int n=10;int a[n];则数组a有10个元素。()

此题为判断题(对,错)。


参考答案

更多 “ int n=10;int a[n];则数组a有10个元素。() 此题为判断题(对,错)。 ” 相关考题
考题 求一个三位正整数N的十位数的正确方法是( )。A.Int(N/10)-Int(N/100)*10B.Int(N/10)-Int(N/100)C.N-Int(N/100)*100D.Int(N-Int(N/100)*100)

考题 将任意一个正的两位数N的个位数与十位数对换的表达式为( )。A.(N-Int(N/10)*10)*10+Int(N/10)B.N-Int(N)/10*10+Int(N)/10C.Int(N/10)+(N-Int(N/10))D.(N-Int(N/10)*10+Int(N/10)

考题 在下面语句中,其含义为“p为指向含n个元素的一维数组的指针变量”的定义语句是 ( )A.int p [n]B.int * p( );C.int * p(n);D.int( * p)[n]

考题 3、申请一个具有n个int型元素的一维动态数组,可以使用下面的哪条语句?A.p = (int *) malloc(n * sizeof(int));B.p = (int *)calloc(n, sizeof(int));C.p = (int *) malloc(n, sizeof(int));D.p = (int *)calloc(n * sizeof(int));E.int p[n];F.p = (int *) realloc(n * sizeof(int));

考题 申请一个m行n列的整型的二维动态数组,可以使用下面的哪条语句?A.p = (int *) malloc(m*n*sizeof(int));B.p = (int *)calloc(m*n, sizeof(int));C.p = (int *) malloc(m*n, sizeof(int));D.p = (int *)calloc(m * n * sizeof(int));E.int p[m][n];F.p = (int *) realloc(m * n * sizeof(int));

考题 申请一个具有n个int型元素的一维动态数组,可以使用下面的哪条语句?A.p = (int *) malloc(n * sizeof(int));B.p = (int *)calloc(n, sizeof(int));C.p = (int *) malloc(n, sizeof(int));D.p = (int *)calloc(n * sizeof(int));E.int p[n];F.p = (int *) realloc(n * sizeof(int));

考题 9、申请一个具有n个int型元素的一维动态数组,可以使用下面的哪条语句?A.p = (int *) malloc(n * sizeof(int));B.p = (int *)calloc(n, sizeof(int));C.p = (int *) malloc(n, sizeof(int));D.p = (int *)calloc(n * sizeof(int));E.int p[n];F.p = (int *) realloc(n * sizeof(int));

考题 5.有以下语句: const int n=20; int a[n]; int *pa[n]; int i; for(i=0; i<n; i++) a[i]=i+1; 使用这些语句,编写完整的程序,通过 pa 数组修改数组 a 元素的值,使其 元素值自增 10,然后通过 pa 数组遍历 a 数组,输出全部元素值,要求每行输出 10 个元素。

考题 12、申请一个m行n列的整型的二维动态数组,可以使用下面的哪条语句?A.申请一个m行n列的整型的二维动态数组,可以使用下面的哪条语句?B.p = (int *)calloc(m*n, sizeof(int));C.p = (int *) malloc(m*n, sizeof(int));D.p = (int *) malloc(m*n, sizeof(int));E.p = (int *) malloc(m*n, sizeof(int));F.p = (int *) realloc(m * n * sizeof(int));

考题 7、申请一个m×n二维int型动态数组,可以使用语句()。A.int *p; p=(int *)calloc(m*n*sizeof(int));B.int p[m][n];C.int *p; p=(int *)calloc(m*n,sizeof(int));D.int *p; p=(int *)malloc(m*n,sizeof(int));