【单选题】【消耗次数: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类型名
随机题目
【单选题】 在Dreamweaver中, 下面关于排版表格属性的说法错误的是?
①  可以设置宽度
②  可以设置高度
③  可以设置表格的背景颜色
④  可以设置单元格之间的距离但是不能设置单元格内部的内容和单元格边框之间的距离
【单选题】 对插入网页中的Flash动画,不能在属性面板中设置哪个属性?
①  动画是否循环播放
②  动画循环播放的次数
③  是否自动播放动画
④  动画的高度和宽度
【单选题】 模板文件的扩展名是?
①  .css
②  .dwt
③  .dll
④  .htm
【单选题】 在表单域中插入一个可以输入多行文本的表单元素,应选择下列哪一个域?
①  按钮域
②  密码域
③  单行文本域
④  多行文本域
【单选题】 下列特殊符号表示空格的是?
①  quot
②  nbsp
③  amp
④  copy
【判断题】 页面的属性,比如文字编码、文字颜色和超链接的颜色等都可以进行重新设置。
①  正确
②  错误
【判断题】 嵌套层中的父层删除,则其下包含的所有子层也将被删除。
①  正确
②  错误
【判断题】 表单内与用户进行交互的表单元素只有文本框。
①  正确
②  错误
【判断题】 表格被广泛地应用在网页设计制作中。
①  正确
②  错误
【判断题】 在进行网页设计时,不允许输入连续多个空格。
①  正确
②  错误