单项选择题

以下不正确的定义语句是()。

A.double x[5]=2.0,4.0,6.0,8.0,10.0;
B.int y[5]=0,1,3,5,7,9;
C.char c1[]='1','2','3','4','5';
D.char c2[]='\x10','\xa','\x8';

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

单项选择题
若有以下结构体定义,则是正确的引用或定义。struct example int x; int y;v1;
A) example.x=10
B) examplev2.x=10
C) struct v2;v2.x=10
D) struct example v2=10;
单项选择题
定义下列结构体(联合)数组:struct st char name[15]; int age;a[10]= ZHAO ,14, WANG ,15, LIU ,16, ZHANG ,17;执行语句printf( %d,%c ,a[2].age,*(a[3].name+2))的输出结果为( )。
A) 15,A
B) 16,H
C) 16,A
D) 17,H
相关试题
  • 下列语句能循环______次。 int s=...
  • 以下程序的输出结果是 。 void reverse...
  • 有以下程序: float f1(float n) re...
  • 下面的程序实现的是从指针p所指向的地址的n...
  • 设有定义: struet person int ID;cha...