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

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

设有如下程序段,则a[1].c 的值为________。 Struct u { int a; int b; float c; } a[2]={1,2,3,4,5,6};

A.1

B.3

C.4

D.6


参考答案和解析
B
更多 “设有如下程序段,则a[1].c 的值为________。 Struct u { int a; int b; float c; } a[2]={1,2,3,4,5,6};A.1B.3C.4D.6” 相关考题
考题 以下对结构体类型变量的定义中,不正确的是A.typedef struct aa{ int n;float m;}AA;AA tdl;B.#define AA struct aaAA{ int n;float m;} tdl;C.struct{ int n;float m;} aa;struct aa tdl;D.struct{ int n;float m;} tdl;

考题 若有下面说明和定义:struct test{ int m1;char m2;float m3;union uu(char u1[5];int u2[2];)ua;}myaa; 则sizeof(struct test)的值是( )。A)20 B)16C)14 D)9

考题 下列语句段中,正确的是( )。A.struct{int x;float y;int a[2];unsigned b[3];char name[10];};B.struct stu{unsigned a[3];unsigned b[4];}x;int*p=x.a;C.struct stu{int a;float x[4];}y={1,1.0};float data=y.x;D.struct nd{int a,b;unsigned c[2]=5;};

考题 若有下面的说明和定义struct test{ int ml; char m2; float m3;union uu {char ul[5]; int u2[2];} ua;} myaa;则sizeof(struct test )的值是A.12B.16C.14D.9

考题 以下对结构体类型变量的定义中,不正确的是______。A.typedef struct aa { int n; float m; }AA; AA td1;B.#define AA struct aa AA {int n; float m; }td1;C.struct {int n; float m; }aa; srtuct aa td1:D.struct {int n; float m; }tdl;

考题 设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )A.2.5B.3.5C.4.5D.表达式不正确

考题 若有如下说明和定义struct test{ int ml; char m2; float m3; union uu {char ul[5]; int u2[2];} ua;} myaa;则sizeof(struct test)的值是A.12 B.16 C.14 D.9

考题 若有下面的说明和定义,则sizeof(struct aa) 的值是 struct aa { int rl;double r2;float r3; union uu {char ul [5];long u2[2]}ua; }mya;A.30B.29C.24D.22

考题 若有下面的说明和定义,则sizeof(struct aa)的值是______。 struct aa { int r1;double r2;float r3; union uu{char ul[5]long u2[2]}ua; }mya;A.30B.29C.24D.22

考题 以下对结构体类型变量的定义中,不正确的是( )A.typedef struct aa { int n; float m; }AA; AA tdl;B.#define AA struct aa AA{ int n; float m; }tdl;C.struct { int n; float m; }aa; struct aa tdl;D.struct { int n; float m, }tdl;

考题 以下对结构体类型变量td的定义中,错误的是 ______。A.typedef struct aaB.struct aa {int n; {int n; float m; float m; }AA; }td; AAtd; struct aa td;C.structD.struct {int n; {int n; float m; float m; }aa; }td; struct aa td;

考题 若有定义:int x=1,y=2;float a=3.7,b=2.1;则(x+y)%2+(int)a/(int)b表达式的值为( )。

考题 有以下定义和语句,则sizeof(a) 的值是【 】,而sizeof(a,share)的值是【 】struct date{ int day;int mouth;int year;union{int share1;float share2;}share;}a;

考题 有以下定义和语句,则sizeof(a.share)的值是( )。struct date{ unsigned int day;unsigned int mouth;unsigned int year;union{int share1;float share2;}share;}a;

考题 以下对结构体类型变量的定义中,不正确的是_______。A.typedef struct aa { int n; float m; }aa; aa td1;B.#define aa struct aa aa{ int n; float m; }td1;C.struct { int n; float m; }aa; struct aa td1;D.struct { int n; float m; }td1;

考题 若有下面的说明和定义,则sizeof(struct aa)的值是 struct aa { int rl;double r2;float r3; union uu{char u1[5];long u2[2];}ua; } mya;A.30B.29C.24D.22

考题 若有下面的说明和定义: struct test { int m1; char m2; float m3; union uu {char u1[5]; int u2[2];}ua; }myaa; 则sizeof(stmct test)的值是( )。A.12B.16C.14D.9

考题 以下对结构体类型变量td的定义中,错误的是A.typedef struct aa { int n; float m; }AA; AA td;B.stmct aa{ int n;float m;}td;stmct aa td;C.struct { int n; float m; }aa; struct aa rd;D.struct{ int n;float m;}td;

考题 若有下面的说明和定义,则sizeof(struct aa)的值是( )。 struct aa { int r1; double r2; float r3; union uu{char u1[5];long u2[2];}ua; } mya;A.30B.29C.24D.22

考题 下列语句段中,正确的是( )。A.street { int x; float y; int a[2]; unsigned b[3]; char name[ 10]; };B.struct stu { unsigned a[3]; unsigned b[4]; }x; int *p= x.a;C.stmct stu { int a; float x[4]; }y={1,1.0}; float data=y.x;D.struct nd { int a,b; unsigned c[2]=5; };

考题 下列语句段中,正确的是( )。A.struct { int x; float y; int a[2]; unsigned b[3]; char name[ 10]; };B.struct stu { unsigned a[3]; unsigned b[4]; }x; int *p= x.a;C.street stu { int a; float x[4]; }y={1,1.0}; float data=y.x;D.struct nd {int a,b; unsigned c[2]=5; };

考题 以下对结构体类型变量td的定义中,错误的是( )。A.typcdef struct aa { int n; float m; } AA; AA td;B.struct aa {int n; float m; } struct aa td;C.struct {int n; float m; } aa; struct aa td;D.struct {int n; float m; }td;

考题 若有下面的说明和定义: struct test { int m1; char m2; float m3; union uu {char ul[5]; int u2[2];} ua; }myaa;则sizeof(struct test)的值是( )。A.12B.16C.14D.9

考题 若有下面的说明和定义,则sizeof(struct aA) 的值是( ) struet aa { int r1;double r2 float r3; union uu{char u1[5]; long u2[2]; }ua; } mya;A.30B.29C.24D.22

考题 在设备驱动程序(函数)Dev_drv1中,对指针ptr的说明如下:【C语文代码】int Dev_drv1(int arg1,int arg2 ){struct node {int ID;char name [20];int range;} ;struct node *ptr;/*其他局部变量声明,略*/ptr = (struct node *)malloc(sizeof(struct node)*100);/*其他程序代码,略*/}设int为32位整数,char占8位。当对指针ptr赋完值后的值为0x3751CO,若再执行一条“ptr++;”语句,此时ptr的值为多少? (用十六进制表示)。

考题 有如下程序段: int total = 0; for ( int i = 0; i  4; i++ ){ if ( i == 1) continue; if ( i == 2) break;total += i;} 则执行完该程序段后total的值为()A、0B、1C、3D、6

考题 若已定义   struct num{    int a;    int b;   float f;  } n={1,3,5.0};  struct num *p=n;  则表达式p-b/n.a*++p-b的值是  ①  ,表达式(*p).a+p-f的值是  ②  。

考题 单选题有以下程序段struct st{ int x; int *y;}*pt;int a[]={1,2},b[]={3,4};struct st c[2]={10,a,20,b};pt=c;以下选项中表达式的值为11的是(  )。A ++pt-xB pt-xC *pt-yD (pt++)-x