【单选题】【消耗次数:1】
函数原型语句正确的是()。
int Function(void a);
void Function (int);
int Function(a);
void int(double a);
参考答案:
复制
纠错
相关题目
【单选题】 有说明语句int b[4][5];void fun(int*,int n);调用函数的正确语句是()
①  fun(b,20);
②  fun(b[0],20);
③  fun(b[0][0],20);
④  fun(b,20);
【单选题】 有函数原型void fun6(int);在下列选项中,不正确的调用是()
①  int a=21;fun6(a);
②  int a=15;fun6(a3);
③  int b=100;fun6(b);
④  fun6(256);
【单选题】 考虑下面的函数原型声明:void testDefaulParam(int a,int b=7,char z=*下面函数调用中,不合法的是( )。
①  testDefaulParam(5);
②  testDefaulParam(5,8);
③  testDefaulParam(5,#
④  testDefaulParam(0,0,*
【单选题】 考虑下面的函数原型声明:void testDefaulParam(int a,int b=7,char z=*);下面函数调用中,不合法的是( )。
①  testDefaulParam(5);
②  testDefaulParam(5,8);
③  testDefaulParam(5,#);
④  testDefaulParam(0,0,*);
【单选题】 下列语句中,将函数int sum(int x, int y)正确重载的是( )。
①  float sum(int x, int y);
②  int sum(int a, int b);
③  float sum(float x, float y);
④  double sum(int y, int x);
【单选题】 下列语句中,将函数int sum(int x, int y)正确重载的是( )。
①  float sum(int x, int y);
②  int sum(int a, int b);
③  float sum(float x, float y);
④  double sum(int y, int x);
【单选题】 设函数void swap(int,int)将交换两形参的值,如两整型变量int a=10;int b=15;则执行swap(a,b)后,a、b值分别为( )
①  10,10
②  10,15
③  15,10
④  15,15
【单选题】 若定义了函数 double *function(), 则函数function的返回值为()。
①  实数型
②  实数的地址
③  指向函数的指针
④  函数的地址
【单选题】 若定义了函数 double *function(), 则函数function的返回值为()。
①  实数型
②  实数的地址C.指向函数的指针
③  函数的地址
【单选题】 若定义了函数 double *function(), 则函数function的返回值为(????)。
①  实数型
②  实数的地址C.指向函数的指针
③  函数的地址
【单选题】 设函数void swap(int&,int&)将交换两形参的值,如两整型变量int a=10;int b=15;则执行swap(a,b)后,a、b值分别为( )
①  10,10
②  10,15
③  15,10
④  15,15
随机题目
【单选题】 —Cherry, what do you think of today’s English homework?— .
①  little difficult.
②  The teacher assigned a lot.
③  No problem.
④  No way.
【单选题】 -Must I finish the report today? -_____________________.You can finish it tomorrow.
①  Yes, you must
②  No, you mustn’t.
③  No, you don’t have to
④  yes
【单选题】 It is in the afternoon_______he got the bad news.
①  when
②  /
③  that
④  is
【单选题】 ___________ was very not wise.
①  Telling her the truth
②  Having told her the truth
③  Tell her the truth
④  Have told her the truth
【单选题】 -We’ve worked for a long time, what about stopping to have a rest? -_____________________.
①  A. I like it.
②  A. You are wonderful.
③  A. That’s a good idea.
④  very good
【单选题】 —The red dress fits me very much, doesn’t it?— .
①  Yes, it does.
②  You looks very beautiful.
③  It is a little tight.
④  wonderful
【单选题】 The news came _____ we won the first prize in the competition.
①  that
②  which
③  whether
④  how
【单选题】 One’s health should never be sacrificed for a need to work hard.
①  人的身体健康应该永不牺牲努力工作的需要
②  人永远不该为了努力工作的需要而牺牲身体健康。
③  人的身体健康永远不该为了需要努力工作而被牺牲。
④  人的身体健康该为了需要努力工作而牺牲。
【单选题】 Nowadays people spend more time exercising to keep _____.(
①  fitly
②  fitting
③  fit
④  fiitted
【单选题】 — What are your great strengths?— .
①  I am very shy
②  My job offers me high income
③  I am very active in discussion
④  Ok