【单选题】【消耗次数: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型变量的地址。
①  正确
②  错误
随机题目
【单选题】 2.I couldn’t understand why he pretended ______ in the bookstore.
①  to see me not
②  not to see me
③  not see me
④  to see not me
【单选题】 In the meantime, the question facing business is whether such research is _____ the costs.
①  worth
②  worth of
③  worthy
④  worthwhile
【单选题】 7. They hope to_________the source of the infection.
①  track down
②  look down
③  look at
④  back down
【单选题】 1.The movie star ______ with your sister, didn’t he?
①  was used to dance
②  used to dancing
③  used to dance
④  was used to dancing
【单选题】 7.We had warned him________the danger but he turned a deaf ear to our warning.
①  to
②  along
③  in
④  of
【单选题】 10.It’s a highly___________infection.
①  connect
②  infect
③  infected
④  contagious
【单选题】 8. Herson didnotseemto_____anyimportanceto what she had said.
①  stick
②  notice
③  attach
④  remind
【单选题】 13.Don’t ______ to let me know if there’s anything I can do for you.
①  thrill
②  hesitate
③  reject
④  puzzle
【单选题】 5. Without your help, I couldn’t ______ the details ______.
①  work…at
②  work…out
③  work…on
④  work…up
【单选题】 8. Economy seems to be the only ______ to the financial problem.
①  generation
②  mean
③  solution
④  resolution