【单选题】【消耗次数:1】
下列选项中,不能作为函数的返回类型的是?
void
int
new
long
参考答案:
复制
纠错
相关题目
【单选题】 在下面的( )不能作为函数的返回类型。
①  void
②  int
③  new
④  long
【单选题】 在下面的( )不能作为函数的返回类型。
①  void
②  int
③  new
④  long
【单选题】 有函数原型void fun6(int);在下列选项中,不正确的调用是()
①  int a=21;fun6(a);
②  int a=15;fun6(a3);
③  int b=100;fun6(b);
④  fun6(256);
【单选题】 下列函数不能和函数void print(char)构成重载的是( )
①  int print(int);
②  void print(char,char);
③  int print(char);
④  void print(int,int);
【单选题】 下列选项中,函数返回的关键字是( )。
①  back
②  go
③  return
④  break
【单选题】 下列选项中,函数返回的关键字是( )。
①  back
②  go
③  return
④  break
【判断题】 构造函数用于创建类的实例对象,构造函数名应与类名相同,返回类型为void。
①  正确
②  错误
【单选题】 C语言中,若缺省定义函数返回值类型,则该函数默认返回值类型是()。
①  void
②  long
③  int
④  double
【单选题】 函数返回值类型是由()
①  return语句的表达式类型决定
②  则主调函数接收变量类型决定
③  调用函数时系统随机分配决定
④  定义函数时所指定的函数类型决定
【单选题】 C++中函数返回值的类型是由()决定的。
①  return语句中表达式的类型
②  函数定义时的类型
③  调用函数时的调用语句
④  系统根据结果
随机题目
【判断题】 A: Let me help you with that. B: Thats all right. I can manage.
①  正确
②  错误
【判断题】 A: Can you tell us the story in English? B: No, I cant.
①  正确
②  错误
【判断题】 A: How do you like this flat? B: I dont like it.
①  正确
②  错误
【单选题】 Hangzhou is in [填空] east of China.
①  /
②  an
③  a
④  the
【单选题】 He was[填空] three-year-old baby at that time.
①  a
②  an
③  the
④  /
【单选题】 He used to be [填空] worker but later he turned [填空] drawer.
①  a,a
②  a,the
③  /,a
④  a,/
【判断题】 A: I have won the race. B: Wonderful.
①  正确
②  错误
【判断题】 A: Wonderful weather! B: Yes, isnt it.
①  正确
②  错误
【判断题】 A: You know, I have three kids now. B: Thats terrific.
①  正确
②  错误
【判断题】 A: Would you mind if I turned the radio up? B: No, go ahead.
①  正确
②  错误