设有说明:char w; int x;float y;double a;则表达式w*x+z-y值的数据类型为( )。
A.float
B.char
C.int
D.double
A.float
B.char
C.int
D.double
设有以下说明语句,则下面的叙述中不正确的是( )。
struct ex
(int x;float y;char z; )example;
(A)struct结构体类型的关键字 (B)example是结构体类型名
(C)x,y,z都是结构体成员名 (D)struct ex是结构体类型
A.myInt = myByte;
B.myInt = myLong;
C.myByte = 3;
D.myInt = myChar;
E.myFloat = myDouble;
F.myFloat = 3;G.myDouble = 3.0;
A.struct是结构体类型的关键字
B.example是结构体类型名
C.x,y,z都是结构体成员名
D.struct ex是结构体类型
A.A.STD tt[2]={{1,'A',62},{2,'B',75}};
B.B.STD tt[2]={1,"A",62},2,"B",75};
C.C.struct tt[2]={{1,'A'},{2,'B'}};
D.D.struct tt[2]={{1,"A",62.5},{2,"B",75.0}};
设有以下结构类型说明和变量定义,则变量a在内存所占字节数是______。
Struct stud
{ char hum[6];
int s[4];
double ave;
} a,*p;
A.3
B.4
C.5
D.6
设有以下结构类型说明和变量定义,则变量a在内存所占字节数是______。
Struct stud
{ char hum[6];
int s[4];
double ave;
} a,*p;
设有以下说明语句
typedef struct
{ int n;
char ch[8];
}PER;
则下面叙述中正确的是( )。
A.PER是结构体变量名
B.PER是结构体类型名
C.typedef struct是结构体类型
D.struct是结构体类型名