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

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

有以下说明和定义语句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


参考答案

更多 “ 有以下说明和定义语句struct student{ int age;char num {8};};struct student stu[3]={{20,“200401”},{21,“200402”),{19,“200403”}};struct student *p=stu; 以下选项中引用结构体变量成员的表达式错误的是A.(p++)->numB.p->numC.(*p).numD.stu[3].age ” 相关考题
考题 类Student代码如下:DclassStudent{Stringname;intage;Student(Stringnm){(构造方法)name=nm;}}执行语句Studentstu=newStudent()后,字段age的值是哪项?() A.0B.nullC.falseD.编译错误

考题 类Student代码如下:classStudent{Stringname;intage;Student(Stringnm){name=nm;}}执行语句Studentstu=newStudent()后,字段age的值是哪项?() A.0B.nullC.falseD.编译错误

考题 有以下定义和语句: struct students {int num;char name[20];char c; struct {int grade1;int grade2;}s; }; struct students w,*pw; *pw=w; 下列赋值语句不正确的是( )。A.w.num=1002;B.w.grade1=85;C.pw->num=1002;D.w.s.grade2=85;

考题 有以下的结构体变量定义语句: struct student { int num; charname[9]; } stu; 则下列叙述中错误的是()。A.结构体类型名为stuB.num是结构体成员名C.struct是C的关键字D.结构体名为student

考题 4.有以下说明定义和语句,可用a.day引用结构体成员day,请写出引用结构体成员a.day的其他两种形式 、 。 struct {int day; char mouth; int year;}a, *b; b=a;

考题 【单选题】以下结构体的定义语句中,正确的是______。A.struct student {intnum; char name[10];int age;};stu;B.struct {int num;char name[10];int age;}student; struct studentstu;C.struct student {int num; char name[10];int age;}stu;D.struct student {int num; char name[10]; int age;}; student stu;

考题 【单选题】以下对结构体类型变量的定义中不正确的是()。A.#define STUDENTstruct student STUDENT {int num; float age;}stdl;B.struct student{ int num; float age; }stdl;C.struct{ int num; float age; }std1;D.struct{ int num;floatage; }student; struct studentstd1;

考题 有以下的结构体变量定义语句: struct student { int num; charname[9]; } stu; 则下列叙述中错误的是()。A.结构体类型名为stuB.num是结构体成员名C.struct是C的关键字D.结构体类型名为student

考题 以下结构体的定义语句中,正确的是______。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;

考题 以下对结构体类型变量的定义中不正确的是()。A.struct{ int num; float age; }student; struct student std1;B.#define STUDENT struct student STUDENT{ int num; float age; }std1;C.int num; float age; }std1;D.struct{ int num; float age; }std1;