单项选择题

下列二维数组初始化语句中,不正确的是()。

A. int b[][2]=1,2,3,4,5,6,7;
B. int b[3][5]=0,0,0;
C. intb[][4]=1,2,3,4,5,6;
D. int b[3][2]=(1,2) ,(3,4) ,(5,6) ;

<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的运行结果为()。 #include<stdio.h> void abc(char*str) int a,b,i,j; for(i=j=0;str[i]!=' 0';i++) if(str[i]!='a' str[j++]=str[i]; str[j]=' 0'; void main() char str[]= abcdef ; abc(str); printf( str[]=%s ,str);

A. str[]=bcdef
B. str[]=abcdef
C. str[]=a
D. str[]=ab

单项选择题
有如下说明: int a[10]=1,2,3,4,5,6,7,8,9,10,*p=a;则数值为9的表达式是()。

A. *p+9
B. *(p+8)
C. *p+=9
D. p+8

相关试题
  • 有下面的程序:#include <stdio, h>m...
  • 请读程序: #include <stdio.h> int...
  • 有以下程序 #include<stdio.h> #inc...
  • 已定义以下函数: fun(int*p) return...
  • 若文本文件filea.txt中原有内容为:hello...