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

题目内容 (请给出正确答案)

下列语句中,不正确的是______。

A.static int a[2][3]={1,2,3,4,5,6};

B.static int a[2][3]={{1},{4,5}};

C.static int a [][3]={{1},{4}};

D.static int a [][]={{1,2,3},{4,5,6}};


参考答案

更多 “ 下列语句中,不正确的是______。A.static int a[2][3]={1,2,3,4,5,6};B.static int a[2][3]={{1},{4,5}};C.static int a [][3]={{1},{4}};D.static int a [][]={{1,2,3},{4,5,6}}; ” 相关考题
考题 有以下程序#include stdio.hmain ( ){ FILE *fp; int i,a[6]={1,2,3,4,5,6};fp=fopen("d3.dat", " w+b");fwrite(a,sizeof(int),6,fp);fseek(fp,sizeof(int)*3,SEEK_SET); /* 该语句使读文件的位置指针从文件头向后移动 3 个 int 型数据 */fread(a,sizeof(int),3,fp); fclose(fp);for(i=0;i6;i++) printf("%d,",a[i]);}程序运行后的输出结果是A)4,5,6,4,5,6,B)1,2,3,4,5,6,C)4,5,6,1,2,3,D)6,5,4,3,2,1,

考题 有以下程序 #include main () {FILE *fp; int i,a[6]={1,2,3,4,5,6k}; fp=fopen(“d3.dat”,”w+b”); fwrite(a,sizeof(int),6,fp); fseek(fp,sizeof(int)*3,SEEK_SET);/*该语句使读文件的位置指针从文件头向后移动3个int型数据*/ fread(a,sizeof(int),3,fp); fclose(fp); for(i=0;i6;i++) printf(“%d,”,a[i]); }程序运行后的输出结果是( )。A.4,5,6,4,5,6,B.1,2,3,4,5,6,C.4,5,6,1,2,3,D.6,5,4,3,2,1,

考题 有以下程序includemain(){FILE*fp;int i,a[6]={1,2,3,4,5,6};fp=fopen("d3.dat","w+b" 有以下程序 #include<stdio.h> main() {FILE*fp;int i,a[6]={1,2,3,4,5,6}; fp=fopen("d3.dat","w+b"); fwrite(a,sizeof(int),6,fp); fseek(fp,sizeof(int),3,SEEK_SET);/*该语句使读文件的位置指针从文件头向后移动3个int型数据*/ fread(a,sizeof(int),3,fp);fclose(fp); for(i=0A.4,5,6,4,5,6,B.1,2,3,4,5,6,C.4,5,6,1,2,3,D.6,5,4,3,2,1,

考题 有以下程序 include main() { FILE *fp;int i,a[6]={1,2,3,4,5,6}; fp= 有以下程序 #include<stdio.h> main() { FILE *fp;int i,a[6]={1,2,3,4,5,6}; fp=fopen("d3.dat","w+b"); fwrite(a.sizeof(int),6,fp); fseek(fp,sizeof(int)*3,SEEK_SET):/*该语句使读文件的位置指针从文件头向后移动3个int型数据*/ fread(a,sizeof(int),3,fp);fclose(fp); for(i=0;i<6;i++)printf("%d,",a[i]); } 程序运行后的输出结果是A.4,5,6,4,5,6,B.1,2,3,4,5,6,C.4,5,6,1,2,3,D.6,5,4,3,2,1,

考题 对于局部变量整型切片x的赋值,下面定义正确的是() A.x := []int{1, 2, 3,4, 5, 6,}B.x := []int{1, 2, 3,4, 5, 6}C.x := []int{1, 2, 3,4, 5, 6}D.x := []int{1, 2, 3, 4, 5, 6,}

考题 下列的数组定义语句,不正确的是()A、inta[]=newint[5]{1,2,3,4,5}B、int[,]a=newinta[3][4]C、int[][]a=newint[][4];D、int[]a={1,2,3,4};

考题 有以下程序 include main( ) { FILE *fp;int i,a[6]={1,2,3,4,5,6}; fp=fopen("d3.da 有以下程序#include <stdio.h>main( ){ FILE *fp;int i,a[6]={1,2,3,4,5,6};fp=fopen("d3.dat","w+b");fwrite(a,sizeof(int),6,fp);fseek(fp,sizeof(int)*3,SEEK_SET);/*该语句使读文件的位置指针从文件头向后移动3个int型数据*/fread(a,sizeof(int),3,fp);fclose(fp);for(i=0;i<6;i++)printf("%d,",a[i]);}程序运行后的输出结果是A.4,5,6,4,5,6,B.1,2,3,4,5,6,C.4,5,6,1,2,3,D.6,5,4,3,2,1,

考题 下面代码能通过编译的是:A.int main() { int a[3]={1,2,3}; int *b[3]={a[1],a[2],a[3]}; int **p = b; return 0; }B.int main() { int a[3]={1,2,3}; int *b[3]={a[1],a[2],a[3]}; int **p = b; return 0; }C.int main() { int a[3]={1,2,3}; int *b[3]={a[1],a[2],a[3]}; int *p = b; return 0; }D.int main() { int a[3]={1,2,3}; int *b[3]={a[1],a[2],a[3]}; int *p = b; return 0; }

考题 下面几条定义一维数组的语句,正确的是A.int[] arr2 = new int[];B.int[] arr2 = new int[5];C.int arr2[] = new int[5]{1, 2, 3, 4, 5};D.int[] arr2 = new int[5]{1, 2, 3, 4, 5, 6};

考题 下列的数组定义语句,不正确的是____。A.int a[]=new int[5]{1,2,3,4,5}B.int[,]a=new inta[3][4]C.int[][]a=new int [3][];D.int []a={1,2,3,4};