【单选题】【消耗次数:1】
下面正确的函数原型语句是?
int Function(void a);
void Function(int );
int Function(a);
void;
参考答案:
复制
纠错
相关题目
【单选题】 有说明语句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 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,*);
【单选题】 有函数原型void fun6(int);在下列选项中,不正确的调用是()
①  int a=21;fun6(a);
②  int a=15;fun6(a3);
③  int b=100;fun6(b);
④  fun6(256);
【单选题】 下面哪个函数是public void method(){ }的重载函数?( )
①  public void method( int m){ }
②  public int method(){ }
③  public void method2(){ }
④  public int method(int m,float f ){ }
【单选题】 下面程序的输出结果是()。 #include int num=10; func( ) {int num=4; return ++num; } void main( ) { printf(%d\n, func( ) ) ; }
①  4
②  5
③  10
④  11
【单选题】 设函数void swap(int,int)将交换两形参的值,如两整型变量int a=10;int b=15;则执行swap(a,b)后,a、b值分别为( )
①  10,10
②  10,15
③  15,10
④  15,15
【单选题】 下列语句中,将函数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的返回值为()。
①  实数型
②  实数的地址
③  指向函数的指针
④  函数的地址
随机题目
【单选题】 When I read the newspaper, I always read the _____ first.
①  headlines
②  headquarters
③  heaven
④  horizon
【单选题】 The millions of circulations involved, _____ by hand, would have lost all practical value by the time they were finished.
①  had they been done
②  they had been done
③  having been done
④  they were done
【单选题】 Betty advised me to label our luggage carefully in case it gets _____ in transit.
①  misused
②  mishandled
③  mistaken
④  mislaid
【单选题】 It was dark in the cave so she _____a match.
①  struck
②  hit
③  fired
④  burned
【单选题】 Jack is so _____ to his appearance that he never has his clothes pressed.
①  adverse
②  anonymous
③  indifferent
④  casual
【单选题】 When he was asked about the missing briefcase, the man _____ever seeing it.
①  refused
②  denied
③  opposed
④  resisted
【单选题】 _____money, she is quite rich. However, this does not mean that she is happy.
①  Concerning
②  As to
③  In terms of
④  In the light of
【单选题】 _____the stress of examinations are over, we call all relax.
①  while
②  Even though
③  Now that
④  For
【单选题】 He was determined to sail around the world _____his illness and old age.
①  given
②  although
③  despite
④  in spite
【单选题】 Although she wrote a lot of short stories and poems when she was very young, _____she was twenty five.
①  her first real success did not come until
②  her real first success came until not
③  since her first real success did not come until
④  not until her first real success