(*a)->11
a[0].n
p->n
(*p).n
第1题:
以下结构体类型说明和变量定义中正确的是( )。
A.typedef struct
B.struct REC; {int n;char c;}REC; {int n;char c;}; REC t1,t2; REC t1,t2;
C.typedef struct REC;
D.struct {int n=0;char c='A';}t1,t2; {int n;char c;}REC; REC t1,t2;
第2题:
设有如下说明typedef struct{ int n; char c; double x;}STD;则以下选项中 ,能正确定义结构体数组并赋初值的语句是
A.STD tt[2]={{1,'A',62},{2,'B',75}};
B.STD tt[2]={1,"A",62,2,"",75};
C.struct tt[2]={{1,'A'},{2,'B'}};
D.struct tt[2]={{1,"A",62.5},{2,"B",75.0}};
第3题:
设有定义“struct {int a; float b; char c;} abc, *p_abc=&abc;”,则对结构体成员a的引用方法可以是abc.a和p_abca。
第4题:
以下对结构体类型变量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;
第5题:
有如下说明和定义语句: struct student { int age; char num{8};}; struct student stu[3]={{20,"200401"},{21,"200402"),{19,"200403"}}; struct student *p=stu; 以下选项中引用结构体变量成员的表达式错误的是( )。
A.(p++)->num
B.p->num
C.(*p).num
D.stu[3].age
第6题:
设有以下语句 ( ) struct st {int n;struct st * next;}; static struct st a [3]={5,&a [1],7,&a[2],9,'\0'},*p; p=&a[0] 则表达式( )的值是6。
A.p+ + ->n
B.p->n + +
C.(* P). n+ +
D.+ +p - >n
第7题:
有以下说明和定义语句struct student{ int age; char num[8];};struct student stu[3]={{20,"200401"},{21,"200402"},{10\9,"200403"}};struct student *p=stu;以下选项中引用结构体变量成员的表达式错误的是A.(p++)->num B.p->num C.(*p).num D.stu[3].age
第8题:
设有以下语句: struct st{int n;struct st*next;}; static struct st a[3]={5,&a[1],7,&a[2],9,'\0'},*p; p=&a[0];则表达式的值是6的为______。
A.p++->n
B.p->n++
C.(*p).n++
D.++p->n
第9题:
A、abc.a
B、abc->a
C、(*p).a
D、p->a
第10题:
以下对结构体类型变量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;
第11题:
typedef struct{int n;char c;}REC; REC t1,t2;
struct REC;{int n;char c;}; REC t1,t2;
typedef struct REC:{int n=0;char c = 'A';} t1,t2; REC t1,t2;
struct{int n;char c;}REC;
第12题:
p=&d.n
*p=d.n
p=(struct T *)&d.n
p=(struct T *)d.n
第13题:
设有以下说明语句
typedef struct
{ int n;
char ch[8];
} PER;
则下面叙述中正确的是
A.PER 是结构体变量名
B.PER是结构体类型名
C.typedef struct 是结构体类型
D.struct 是结构体类型名
第14题:
设有定义“stmct{int a;float b;char c}abc,*p_abc=&abc;”,则对结构体成员a的引用方法可以是abc.a和p_abc______。
第15题:
设有如下定义:
struct sk
{ int n;
float x; } data, *p;
若要使p指向data中的n域,正确的赋值语句是
A.p=&data.n;
B.*p=data.n;
C.p=(struct sk*)&data.n;
D.p=(struct sk*)data.n;
第16题:
下列结构体类型说明和变量定义中正确的是( )。
A.typedef struct {int n; char c;}REC; REC t1,t2;
B.struct REC; {int n; char c;}; REC t1,t2;
C.typedef struct REC; { int n=0; char c='A';} t1,t2;
D.stmct { int n; char c;} REC; REC t1,t2;
第17题:
设有以下说明语句 typedef struct { int n; char ch[8]; }PER;
A.PER 是结构体变量名
B.PER 是结构体类型名
C.typedef struct 是结构体类型
D.struct 是结构本类型名
第18题:
若有以下定义和语句 struct a{ int n,m;}; struct a st[3]={{2,3},{4,5},{6,7}}; struct a*p=st;则以下错误的引用是A.(p++)->n; B.st[0].n; C.(*p).n; D.P=&st.m,
第19题:
有以下说明和定义语句:struct student{int age; char num[8] ;};struct student stu [3] = { { 20, "200401" } , {21, "200402" } , {19, "200403" } };stract student * p = stu;以下选项中引用结构体变量成员的表达错误的是( )。
A.(p++) ->num
B.p- >num
C.( *p).num
D.stu[3].age
第20题:
设有以下说明语句: typedef struct { int n; char ch[8]; }PER; 则下面叙述中,正确的是( )。
A.PER是结构体变量名
B.PER是结构体类型名
C.typedef struct是结构体类型
D.struct是结构类型名
第21题:
假设有如下定义:struct a{int n;float k}data,*p;若要使p指向data中的成员n,正确的赋值语句是
A.p=&data.n;
B.*p=data.n;
C.p=(struct a*)&data.n;
D.p=(struct a*)data.n;
第22题:
设有C语句:struct T{int n;double x;}d,*p;,若要使p指向结构体变量中的成员n,正确的赋值语句是()
第23题:
ps.birth.y
s.birth.y
ps->birth.y
(*ps).birth.y
第24题:
(*a)->11
a[0].n
p->n
(*p).n