单项选择题

以下数组定义中错误的是【 】。

A.int x[ ][3]:{0};
B.int x[2][3]={{l,2},{3,4},{5,6}};
C.int X[ ][3]={{l,2,3},{4,5,6}};
D.int x[2][3]={l,2,3,4,5,6};
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序:#include <stdio.h>main( ){int a[ ]={1,2,3,4,5,6,7,8,9,10,11,12,},*p=a+5,*q=NULL;*q=*(p+5);printf( %d %d n ,*p,*q);}程序运行后的输出结果是( )。
A.运行后报错
B.6 6
C.6 11
D.5 10
单项选择题
有以下程序:main( ){ char a[ ]={‘a'',‘b'',‘c'',‘d'',‘e'',‘f'',‘g'',‘h'',‘ 0''};int i,j;i=sizeof(a);j=strlen(a);printf( %d,%d n ,i,j);}程序运行后的输出结果是( )。
A.9,9
B.8,9
C.1,8
D.9,8
相关试题
  • 以下程序中函数f( )的功能是将n个字符串...
  • 有以下程序:#include<stdi0.h>main(...
  • 有以下程序:struct STU{char name[1...
  • 有以下程序:#include <stdio.h>main...
  • 设有以下语句int a=1,b=2,C;C=a^...