【单选题】【消耗次数:1】
定义一个void型函数意味着调用该函数时,函数(  )。
通过return返回一个用户所希望的函数值
返回一个系统默认值
没有返回值
返回一个不确定的值
参考答案:
复制
纠错
相关题目
【单选题】 一个函数的返回值由( )确定。
①  return语句中的表达式
②  调用函数的类型
③  系统默认的类型
④  被调用函数的类型
【单选题】 当一个函数没有返回值时,该函数类型应说明为()。
①  void
②  int
③ 
④  任意
【单选题】 一个函数返回值的类型是由( )决定的。
①  return语句中表达式的类型
②  在调用函数时临时指定
③  定义函数时指定的函数类型
④  调用该函数的主调函数的类型
【单选题】 如果某函数的返回值是个对象,则该函数被调用时,返回的对象()。
①  是通过复制构造函数初始化的
②  是通过无参构造函数初始化的
③  用哪个构造函数初始化取决于函数的return语句是怎么写的
④  不需要初始化
【单选题】 C语言中,若缺省定义函数返回值类型,则该函数默认返回值类型是()。
①  void
②  long
③  int
④  double
【简答题】 Excel支持[填空1],即一个函数的返回值是另一个函数的参数。
【填空题】 Excel支持[填空1][填空2],即一个函数的返回值是另一个函数的参数。
【单选题】 已定义以下函数 fun(int*p) {return*p;} 该函数的返回值是()
①  不确定的值
②  形参p中存放的值
③  形参p所指存储单元中的值
④  形参p的地址值
【判断题】 函数定义时,函数首部包含三个部分:返回值类型、函数名和函数参数
①  正确
②  错误
【判断题】 对于一个返回值为指针的函数,能返回auto型局部变量的地址,但不能返回static型变量的地址。
①  正确
②  错误
随机题目
【单选题】 He is a man who always makes his promises [] who never keeps them.
①  or
②  and
③  but
④  so
【单选题】 She could not stand the air-conditioner in the hall, [] she left in the middle of the performance.
①  or
②  and
③  but
④  so
【单选题】 Curiosty [] imagination are imporant qualities which help stimulate the discovery of many facts abut science.
①  or
②  and
③  but
④  so
【单选题】 There [] five trees and a well behind her house.
①  is
②  are
【单选题】 The last time we had great fun was [] we were visiting the Water Park.
①  where
②  how
③  when
④  why
【单选题】 There[] a Japanese and two Koreans in his class.
①  is
②  are
【单选题】 It seemed a long time since we last met. Identify the mistake in the sentence.
①  It
②  seemed
③  a
④  met
【单选题】 In Jerry nagged at me to walk the dog, the writers attitude is []
①  positive
②  negative
【单选题】 []a friend I would advise you to stop smoking at once.
①  As
②  Like
【单选题】 He []from his seat to greet the guests.
①  rose
②  raised