【简答题】【消耗次数:1】
假如数组元素是struct Student类型,则在实现换值时,临时变量temp也应定义为[填空1]类型。
参考答案:
复制
纠错
相关题目
【简答题】 已有定义struct Student stu[3],如果要求指针变量p能够指向stu中的元素,则p的基类型应为[填空1]。
【判断题】 通过指针引用一维数组元素时,定义的指针变量的数据类型可以和数组元素类型相同
①  正确
②  错误
【多选题】 以下说法正确的是(  )。#include stdio.hint main(){struct student // 声明结构体类型struct student {int num;char name[20];float score;}student1;
①  student是变量名
②  student是类型名
③  student1是变量名
④  student1类型名
【判断题】 如果p是一个指向struct Student类型对象的指针变量,那么执行p++时,p的增量是结构体struct Student的长度。
①  正确
②  错误
【判断题】 如果p是一个指向struct Student类型对象的指针变量,则它不应用来指向stu数组元素中的某一成员。
①  正确
②  错误
【单选题】 student是一个结构体类型,则结构体变量定义正确的是()
①  struct student a
②  a student
③  struct a
④  以上都不对
【单选题】 数组元素下标的数据类型为()。
①  整型常量、字符型常量或整型表达式
②  字符串常量
③  实型常量或实型表达式
④  任何类型的表达式
【单选题】 假定一个结构类型的定义为“struct A{int a,b;A* c;};”,则该类型的长度为( )。
①  8
②  10
③  12
④  16
【单选题】 假定一个结构类型的定义为“struct A{int a,b;A* c;};”,则该类型的长度为( )。
①  8
②  10
③  12
④  16
【判断题】 以变量名作为函数参数时,实参类型是变量名;以数组名作为函数参数时,实参类型是数组名。
①  正确
②  错误
随机题目
【单选题】 If we say some food is ____, we mean it is safe to eat.
①  ideal
②  editable
③  ideate
④  edible
【单选题】 Most people came to realize that it was about time the government ____ further measures to control the population.
①  must take
②  is taking
③  takes
④  took
【单选题】 He always has a lot of _______ ideas in his mind , and sometimes we do not even know what he is thinking about.
①  novel
②  spoil
③  acceptable
④  additional
【单选题】 Her skin was dry after ____ to the wind during the trip.
①  failure
②  disclosure
③  exposure
④  pressure
【单选题】 Though ____ in a big city, Peter always prefers to paint the primitive scenes of country life.
①  grown
②  raised
③  tended
④  cultivated
【单选题】 The medicine is on sale everywhere. You can get it at ______ chemist’s.
①  each
②  some
③  certain
④  any
【单选题】 The computer has brought about surprising technological changes ____ we organize and produce information.
①  in a way
②  in the way
③  in that way
④  in no way
【单选题】 When Mr. Jones gets old, he will ____ his business to his son.
①  take over
②  hand over
③  think over
④  get over
【单选题】 The ____ of Liberty was dedicated on an island in Upper New York Bay in 1886.
①  Status
②  Statue
③  Stature
④  State
【单选题】 John _______ to be a polite man. But in fact he is very rude.
①  pretends
②  assures
③  affords
④  melts