【单选题】【消耗次数:1】
使用重载函数的目的是
共享函数数据
减少代码量
优化运行效率
提高可读性
参考答案:
复制
纠错
相关题目
【单选题】 函数重载是指()
①  两个或两个以上的函数取相同的函数名,但形参的个数或类型不同
②  两个以上的函数取相同的名字和具有相同的参数个数,但形参的类型可以不同
③  两个以上的函数名字不同,但形参的个数或类型相同
④  两个以上的函数取相同的函数名,并且函数的返回类型相同
【单选题】 函数重载是指()。
①  两个或两个以上的函数取相同的函数名,但形参的个数或类型不同
②  两个以上的函数取相同的名字和具有相同的参数个数,但形参的类型可以不同
③  两个以上的函数名字不同,但形参的个数或类型相同
④  两个以上的函数取相同的函数名,并且函数的返回类型相同
【单选题】 函数重载是指(????)
①  两个或两个以上的函数取相同的函数名,但形参的个数或类型不同
②  两个以上的函数取相同的名字和具有相同的参数个数,但形参的类型可以不同
③  两个以上的函数名字不同,但形参的个数或类型相同
④  两个以上的函数取相同的函数名,并且函数的返回类型相同
【单选题】 函数重载是指()。
①  两个或两个以上的函数取相同的函数名,但形参的个数或类型不同
②  两个以上的函数取相同的名字和具有相同的参数个数,但形参的类型可以不同
③  两个以上的函数名字不同,但形参的个数或类型相同
④  两个以上的函数取相同的函数名,并且函数的返回类型相同
【多选题】 函数重载主要有()。
①  函数重载
②  消息重载
③  变量重载
④  运算符重载
【单选题】 注释是提高程序可读性的有效手段,好的程序注释占到程序总量的( )。
①  1/6
②  1/5
③  1/4
④  1/3
【判断题】 在C语言程序中,可以使用注释来增强程序的可读性。
①  正确
②  错误
【单选题】 下面哪个函数是public void method(){ }的重载函数?( )
①  public void method( int m){ }
②  public int method(){ }
③  public void method2(){ }
④  public int method(int m,float f ){ }
【单选题】 下列有关重载函数的说法中正确的是()
①  重载函数必须具有不同的返回值类型
②  重载函数参数个数必须相同
③  重载函数必须有不同的形参列表
④  重载函数名可以不同
【单选题】 下列函数不能和函数void print(char)构成重载的是( )
①  int print(int);
②  void print(char,char);
③  int print(char);
④  void print(int,int);
随机题目
【单选题】 3.John, look at the time.____you play the piano at such a late hour
①  Must
②  Can
③  May
④  Need
【单选题】 26.I was really anxious about you.You ___home without a word.
①  mustn`tleave
②  couldn`thaveleft
③  needn`tleave
④  shouldn`thaveleft
【单选题】 24.In those days all the work had to be done ___hand.
①  with
②  in
③  by
④  on
【单选题】 21.—I went to visit Xi`an City Wall yesterday afternoon. ---Oh, did you ? _______.
①  SodidI
②  SoIdid
③  NeitherdidI
④  NordidI
【单选题】 25.She ____the loud speaker so that everyone in the lecture room could hear her.
①  turnedon
②  turnedup
③  turnedoff
④  turneddown
【单选题】 22._____in a friendly way, their quarrel came to end.
①  Beingsettled
②  Settled
③  Havingsettled
④  Settling
【单选题】 30. —Shall I return the book to the library ? ----_______Let Li Ping do it.
①  Allright
②  Yes,please
③  Notrouble
④  No,thanks
【单选题】 28.---Jane won the first prize in the concert. ---______.
①  Soshedid
②  Sodidshe
③  Soshedid,too
④  Sodidshe,too
【单选题】 23.____time we had at the dinner party !
①  Howwonderful
②  Whatawonderfultime
③  Howawonderfultime
④  Whatwonderfultime
【单选题】 27.---I`ll be away for a visit to the History Museum.Would you mind going with me ? ---______.
①  I`lllikeit
②  No,I`venotime
③  Notatall,I`dbegladto
④  Yes,ofcourse