【单选题】【消耗次数: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类型名
随机题目
【单选题】 在睡眠准备阶段,做好物质准备之时,还要做好
①  抚慰哭闹幼儿准备
②  抚慰生病幼儿的准备
③  心理准备
【单选题】 对于生病的幼儿,教师尤其要悉心照顾。要时刻关注
①  跑、闹
②  饭量增减
③  体温变化、是否咳嗽或呕吐
【单选题】 古印度什么种姓的孩子完全被剥夺了接受教育的权利
①  吠舍
②  刹帝利
③  婆罗门
④  首陀罗
【单选题】 教师的教育理念、教育行风、人际关系和情感氛围属于环境中的
①  广义环境
②  物质环境
③  精神环境
④  教育环境
【单选题】 古罗马共和后期,教育的根本目的是培养什么,学前教育中儿童学习希腊文和拉丁文
①  农夫-军人
②  雄辩家
③  政治家
④  商人
【单选题】 对于全托的幼儿,教师更应该帮助幼儿顺利度过睡眠这一关。教师所用的方式方法多种多样,但不能用
①  恐吓惩罚的方式
②  抚慰的方式
③  关爱的方式
【单选题】 二战后法国幼儿教育的主要形式是
①  母育学校
②  托儿所
③  小学幼儿班
④  幼儿园
【单选题】 进餐准备环节含两个准备环节,除了物质准备环节之外,还有一个环节是
①  自由活动
②  听音乐
③  心理准备
【单选题】 我国最早的学前教育机构蒙养院利用育婴堂和来培养保姆
①  女子师范学堂
②  女子学堂
③  敬节堂
④  初等师范学堂
【单选题】 《幼儿园保育及设备规程》是政府制定的第一个幼儿园法令,奠定了该国学前教育体制的基础
①  英国
②  法国
③  美国
④  日本