Which is true according to the passage?
A.The shop was on the Second Road.
B.The boy was 18 years old.
C.The boy was not in high spirit.
D.The writer entered the shop by chance.
第1题
若有以下定义的语句
struct student
{ int age;
int num; };
struct student stu[3]={{1001,20},{1002,19},{1003,21}};
main()
{ struct student *p;
p=stu;
… }
则以下不正确的引用是
A.(p++)->num
B.p++
C.(*p).num
D.P=&stu.age.
第2题
若有以下定义的语句: struct student { int age; int num;}; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; main() { struct student *p; p=stu; …} 则以下不正确的引用是()。
A.(p++)->num
B.p++
C.(*p).num
D.P=&stu.age.
第3题
若有以下定义的语句 struct student {int age; int num;}; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; main() {stmct student *p; p=stu; …} 则以下不正确的引用是
A.(p++)->num
B.p++
C.(*p).num
D.P=&stu.age.
第4题
若有以下语句,则下面表达式的值为1002的是( )。
struct student
{int age;
int num;
};
struct student stu[3]={{1001,20},{1002,19},{1003,21}};
struct student *p;
p=stu;
A.(p++)->num B.(p++)->age C.(*p).num D.(*++p).age
第5题
A.p=stu;
B.*p=*stu;
C.*p=&stu;
D.p=&stu;
第6题
若有以下说明和语句
struct student
{int age;
int num;
}std, *p;
p=&std;
则以下对结构体变量std中成员age的引用方式不正确的是( )。
A.std.age B.p->age C.(*p).age D.*p.age
第7题
A、#define STUDENT struct student STUDENT{ int num; float age; }std1;
B、struct student{ int num; float age; }std1;
C、struct{ int num; float age; }std1;
D、struct{ int num; float age; }student; struct student std1;
第8题
A、struct student {int num; char name[10];int age;};stu;
B、struct {int num; char name[10];int age;}student; struct student stu;
C、struct student {int num; char name[10];int age;}stu;
D、struct student {int num; char name[10]; int age;}; student stu;
第9题
A、struct student { int num; int age; } stud1;
B、struct { int num; int age; } stud1;
C、typedef struct student { int num; int age; }STUDENT; STUDENT stud1;
D、struct { int num; int age; }; struct student stud1;
第10题
有以下说明和定义语句
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
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!