若有如下定义: union aa {int n; char c[9]; float x;}a,b,c; 则下列叙述中不正确的是( )
A.union aa是定义的共用体类型
B.a,b,c是定义的共用体类型名
C.n、c[9]和x是共用体的成员名
D.a,b,c是定义的共用体变量名
第1题:
若有下面说明和定义: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
第2题:
若有下面的说明和定义
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
第3题:
以下对结构体类型变量的定义中,不正确的是______。
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;
第4题:
若有如下说明和定义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
第5题:
若有下面的说明和定义,则sizeof(struct aa)的值是______。 struct aa { int r1;double r2;float r3; union uu{char ul[5]long u2[2]}ua; }mya;
A.30
B.29
C.24
D.22
第6题:
以下对结构体类型变量的定义中,不正确的是( )
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;
第7题:
以下对结构体类型变量td的定义中,错误的是 ______。
A.typedef struct aa
B.struct aa {int n; {int n; float m; float m; }AA; }td; AAtd; struct aa td;
C.struct
D.struct {int n; {int n; float m; float m; }aa; }td; struct aa td;
第8题:
以下对结构体类型变量的定义中,不正确的是_______。
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;
第9题:
设有定义int a=1;float f=1.2;char C=a;,则下列表示错误的是( )。
A.++a;
B.f一一;
C.c++;
D.8++;
第10题:
若有如下定义和声明: struct s { int m;char ch;double x; union t {char a[6];int b[3];}tt;}ss; 则sizeof(struets)的值是( )
A.6
B.14
C.17
D.20
第11题:
若有下面的说明和定义: struct test { int m1; 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
第12题:
若有说明:char w; int x; float y; double z; 则表达式w*x+y-z的值的数据类型是()。
第13题:
设有下列说明语句: strcut str {int x;float y;char z;}st; 则下列的叙述中不正确的是( )。
A.00001111
B.11111101
C.00000010
D.11000000
第14题:
现有如下定义:struct aa{int a;float b;char c;}*p;现需用malloc函数动态的申请一个struct aa类型大小的空间(由p指向),则定义的语句为: 【17】 。
第15题:
设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )
A.2.5
B.3.5
C.4.5
D.表达式不正确
第16题:
若有下面的说明和定义,则sizeof(struct aa) 的值是 struct aa { int rl;double r2;float r3; union uu {char ul [5];long u2[2]}ua; }mya;
A.30
B.29
C.24
D.22
第17题:
若有以下定义char a;int b;float c;double d;则表达式a*b+d-c值的类型为
第18题:
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。
A. float
B.int
C.char
D.double
第19题:
有如下程序段#include "stdio.h"typedef union{ long x[2]; int y[4]; char z[8];}atx;typedef struct aa { long x[2]; int y[4]; char z[8];} stx;main(){ printf("union=%d,struct aa=%d\n",sizeof(atx),sizeof(stx));}则程序执行后输出的结果是A.union=8,struct aa=8 B.union=8,struct aa=24C.union=24,struct aa=8 D.union=24,struct aa=24
第20题:
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是( )。
第21题:
若有以下定义:
char a;int b;
float c;double d;
则表达式a*b+d-c值的类型为( )。
A.A. float
B.int
C.char
D.double
第22题:
以下对结构体类型变量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;
第23题: