【单选题】【消耗次数:1】
下列()对结构类型变量定义是错误的。
structteacher{intnum;intage;}teach1;
struct{intnum;intage;}teach1,teach2;
struct{intnum;intage;}teacher;structteacherteach1;
structteacher{intnum;intage;};structteacherteach1;
参考答案:
复制
纠错
相关题目
【单选题】 若有定义:structteacher{intnum;charsex;intage;}teacher1;则下面叙述错误的是()。
①  struct是结构类型的关键字
②  structteacher是用户定义的结构类型
③  num、sex、age都是结构变量teacher1的成员
④  teacher1是结构类型名
【多选题】 以下对结构体变量stu1中成员age的合法引用是() structstudent {intage; intnum; }stu1;
①  stu1.age
②  stu1.num
③  student.age
④  student.num
【单选题】 若有定义:structstudent{intnum;charname[8];charsex;floatscore;}stu1;则变量stu1所占用的内存字节数是()。
①  15
②  16
③  8
④  19
【单选题】 若有以下类型说明,则叙述错误的是()。typedefunion{charname[10];intage;}ustu,*umy;
①  umy是指向共用体类型ustu的指针类型名
②  ustu是一个共用体类型名
③  umy是一个共用体类型名
④  age是共用体类型ustu的成员
【单选题】 若有下面定义,对结构体变量成员不正确引用的语句是()。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);
【单选题】 有以下的定义语句:structstudent{intnum;charname[9];};则不能正确定义结构数组并赋初始值的是()。
①  structstudentstu[2]={1,zhangsan,2,lisi};
②  structstudentstu[2]={{1,zhangsan},{2,lisi}};
③  structstu[2]={{1,zhangsan},{2,lisi}};
④  structstudentstu[]={{1,zhangsan},{2,lisi}};
【单选题】 下列()对结构类型变量定义是错误的。
①  struct teacher {int num; int age; } teach1;
②  struct {int num; int age; } teach1, teach2;
③  struct {int num; int age; } teacher; struct teacher teach1;
④  struct teacher {int num; int age; } ; struct teacher teach1;
【单选题】 下面程序的运行结果是()#includestdio.hmain(){intnum=0;while(num=2){num++;printf(“%d,num);}}
①  1
②  12
③  123
④  1234
【简答题】 假如数组元素是struct Student类型,则在实现换值时,临时变量temp也应定义为[填空1]类型。
【多选题】 以下说法正确的是(  )。#include stdio.hint main(){struct student // 声明结构体类型struct student {int num;char name[20];float score;}student1;
①  student是变量名
②  student是类型名
③  student1是变量名
④  student1类型名
随机题目
【简答题】 [填空]与群体规范有关,是指群体中的从众压力使得该群体难以批判性地评估那些不同寻常的、由少数派提出的或者不受欢迎的观点。
【多选题】 信息发送者的可信度是影响有效沟通的障碍的人际因素之一,它包括( )
①  身份地位
②  专业知识
③  外表形象
④  良好愿望
⑤  共同人价值观
【单选题】 陆游的诗集是(    )。
①  《剑南诗稿》
②  《诚斋集》
③  《元丰类稿》
④  《栾城集》
【单选题】 中唐受巴山楚水和当地民风影响,创作有影响的《竹枝词》的作家是(    )。
①  韩愈
②  刘禹锡
③  柳宗元
④  白居易
【简答题】 在补码加减法运算中,采用双符号位的方法(变形补码)怎样进行溢出判断?
【简答题】 十六进制数CB8转换成二进制数。
【判断题】 复映误差是由与工艺系统受力变形所引起的。
①  正确
②  错误
【单选题】 工件以外圆柱面定位时,定位元件不能用()。
①  套筒
②  心轴
③  V形块
④  锥套
【判断题】 拉孔前工件须先制出预制孔。
①  正确
②  错误
【单选题】 表面粗糙度评定参数RZ表示( )
①  轮廓算术平均偏差
②  微观不平度十点高度
③  轮廓最大高度
④  轮廓微观不平度的平均间距