【判断题】【消耗次数:1】
可以引用结构体变量成员的地址,也可以引用结构体变量的地址
正确
错误
参考答案:
复制
纠错
相关题目
【判断题】 可以引用结构体变量中成员的值,引用方式为结构体变量名.成员名
①  正确
②  错误
【单选题】 若有下面定义,对结构体变量成员不正确引用的语句是()。structpup{charname[20];intage;intsex;}p[3],*q;q=p;
①  scanf("%s",p[0].name);
②  scanf("%d",q
③  -scanf("%d",(q
④  -scanf("%d",p[0].age);
【判断题】 对结构体变量的成员可以像普通变量一样进行各种运算
①  正确
②  错误
【多选题】 以下对结构体变量stu1中成员age的合法引用是() structstudent {intage; intnum; }stu1;
①  stu1.age
②  stu1.num
③  student.age
④  student.num
【单选题】 如果局部变量和成员变量同名,如何在局部变量作用域内引用成员变量?( )
①  不能引用,必须改名,使它们的名称不相同
②  在成员变量前加 this,使用 this 访问该成员变量
③  在成员变量前加 super,使用 super 访问该成员变量
④  不影响,系统可以自己区分
【判断题】 指针变量可指向结构体变量。
①  正确
②  错误
【判断题】 可以先声明结构体类型,再定义该类型的变量。
①  正确
②  错误
【判断题】 可以不指定类型名而直接定义结构体类型变量。
①  正确
②  错误
【单选题】 student是一个结构体类型,则结构体变量定义正确的是()
①  struct student a
②  a student
③  struct a
④  以上都不对
【判断题】 由于通过地址能找到所需变量单元,可以说,地址指向该变量单元。
①  正确
②  错误
随机题目
【判断题】 A: Ok, next question. Can you follow me? B: Yes, perfectly.
①  正确
②  错误
【判断题】 A: Could I ask you a favor? B: Good idea.
①  正确
②  错误
【判断题】 A: Good evening, Valley Hotel. B: Good evening, who is that speaking, please?
①  正确
②  错误
【判断题】 A: Sir, no smoking here. B: Sure, I don’t smoke.
①  正确
②  错误
【判断题】 A: Do you have the time? B: Of course, I have.
①  正确
②  错误
【判断题】 A: What time is it? B: Sorry, I dont have a watch with me.
①  正确
②  错误
【判断题】 A: Why didnt you buy that pair of trousers? B: I disliked its pattern.
①  正确
②  错误
【判断题】 A: I like your shirt. You look very nice today. B: No, it’s quite ordinary.
①  正确
②  错误
【判断题】 A: How have you been these years? B: Not too bad.
①  正确
②  错误
【判断题】 A: I wish you success in the final exam. B: The same to you.
①  正确
②  错误