【单选题】【消耗次数:1】
下列关于析构函数描述正确的是( )
可以重载
函数体中必须有delete语句
返回类型必须是void类型
不能指定返回类型
参考答案:
复制
纠错
相关题目
【单选题】 下列关于析构函数描述正确的是( )
①  可以重载
②  函数体中必须有delete语句
③  返回类型必须是void类型
④  不能指定返回类型
【单选题】 下列选项中,不能作为函数的返回类型的是?
①  void
②  int
③  new
④  long
【单选题】 函数返回值类型是由()
①  return语句的表达式类型决定
②  则主调函数接收变量类型决定
③  调用函数时系统随机分配决定
④  定义函数时所指定的函数类型决定
【单选题】 在下面的( )不能作为函数的返回类型。
①  void
②  int
③  new
④  long
【单选题】 在下面的( )不能作为函数的返回类型。
①  void
②  int
③  new
④  long
【判断题】 作为表达式的函数调用,被调用函数必须有返回值。
①  正确
②  错误
【单选题】 C语言中,若缺省定义函数返回值类型,则该函数默认返回值类型是()。
①  void
②  long
③  int
④  double
【单选题】 C++中函数返回值的类型是由()决定的。
①  return语句中表达式的类型
②  函数定义时的类型
③  调用函数时的调用语句
④  系统根据结果
【单选题】 C++中函数返回值的类型是由(????)决定的。
①  return语句中表达式的类型?
②  函数定义时的类型
③  调用函数时的调用语句?
④  系统根据结果
【单选题】 C++中函数返回值的类型是由()决定的。
①  return语句中表达式的类型
②  该函数定义时的类型
③  调用函数时的调用语句
④  系统根据结果
随机题目
【单选题】 国家的根本法是()。
①  行政法
②  刑法
③  宪法
④  民商法
【单选题】 个体在道德意识、道德行为方面,自觉按照一定社会或阶级的道德要求进行自我审度、自我教育、自我锻炼、自我革新、自我完善的活动,称为( ) 。
①  道德认识
②  道德修养
③  道德调节
④  道德发展
【单选题】 诉讼法亦称( )。
①  实体法
②  根本大法
③  程序法
④  特别法
【单选题】 个人品德的形成和发展依赖于()。
①  人的自然本性
②  个体的社会实践
③  个人的内心体验
④  社会的道德原则规范
【单选题】 我国法律规定,醉酒的人()。
①  可以不负刑事责任
②  可以负刑事责任
③  应当负刑事责任
④  可以从轻处罚
【单选题】 我国刑法规定应该受刑事责任的最低年龄是( )。
①  已满14周岁
②  已满14周岁不满16周岁
③  已满16周岁
④  已满18周岁
【单选题】 To their credit the Department of Energy _____these ideas and funded a detailed study.
①  took over
②  took on
③  took up
④  took to
【单选题】 If the scheme is _____carried out without waste of time or energy I shall be completely satisfied.
①  relatively
②  noticeably
③  appropriately
④  efficiently
【单选题】 When we drove to the country, we saw many _____.
①  herds of cattles
②  herds of catt
③  herd of cattle
④  herd of cattles
【单选题】 Televisions enable us to see things happen almost at the exact moment _____.
①  which they are happening
②  they are happening
③  which they happen
④  they have happened