首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列重载函数中,正确的是( )。
下列重载函数中,正确的是( )。
admin
2021-06-10
17
问题
下列重载函数中,正确的是( )。
选项
A、void fun(int a,float b);void fun(int C,float d)
B、void fun(int a,float b);void fun(noat a,int b)
C、float fun(int a,float b);int fun(int b,float a)
D、int fun(int a,int b);float fun(int a,int b)
答案
B
解析
所谓函数重载是指同一函数名可以对应多个函数实现。进行函数重载时,要求同名函数在参数个数上不同,或者参数类型卜不同。
转载请注明原文地址:https://kaotiyun.com/show/c0fp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
如需要向一个二进制文件尾部添加数据,则该文件的打开方式为()。
—个工作人员可使用多台计算机,而一台计算机被多个人使用,则实体工作人员与实体计算机之间的联系是()。
有如下的运算符重载函数定义:doubleoperator+(inti,intk){returndouble(i+k);}但定义有错误,对这个错误最准确的描述是()。
派生类的对象对它的基类成员中()是可以访问的。
有如下函数模板:template<classT>Tsquare(Tx){returnx,x;}其中T是()。
对于一个类定义,下列叙述中错误的是()。
函数swap(a,n)可完成对a数组从第1个元素到第n个元素两两交换。其中b[0]=1;b[1]=2;swap(h,2)。在运行调用函数中的语句后,b[0]和b[1]的值分别为()。
下列数据结构中,属于非线性结构的是()。
对长度为n的线性表进行顺序查找,在最坏情况下所需要的比较次数为()。
有如下头文件:imf1();staticintf2();classMA{public:intf3;();staticintf4();};在所描述的函数中,具有隐含的this指针的是()。
随机试题
根据外汇管理法律制度的规定,下列关于合格境外机构投资者(简称QFII)制度的管理环节中,属于中国证监会职责范围的有()。
金融寡头在经济上的统治是通过()
以下IP地址中,属于B类地址的是______________。
用是企业经营理念、经营责任和()的集中体现。
下列选项中,既是结算业务又带有融资功能的是()。
安徽沿淮菜菜品讲究咸中带辣,汤汁味重色浓,并习惯用()佐味和配色。
个体克服障碍、施展才华、力求又快又好地解决某一问题的愿望和趋势的内在动力称为______。
甲6周岁,一起故意杀人案件中,他目睹了整个过程并告诉了承办案件的警察,我国法律规定,以下对于甲可否作为本案的证人的判断中,正确的是()。
从所给的四个选项中,选择最合适的一个填入问号处,使之呈现一定的规律性。
以下不是“智者”在教育史上的贡献的是()
最新回复
(
0
)