首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下头文件: int f1(); static int f2(); class:MA{ public: int f3(); static int f4(); }; 在所描述的函数中,具有
有如下头文件: int f1(); static int f2(); class:MA{ public: int f3(); static int f4(); }; 在所描述的函数中,具有
admin
2020-07-23
18
问题
有如下头文件:
int f1();
static int f2();
class:MA{
public:
int f3();
static int f4();
};
在所描述的函数中,具有隐含的this指针的是( )。
选项
A、fl
B、f2
C、f3
D、f4
答案
C
解析
只有类的非静态成员函数才隐含this指针,其作用域是类内部,当类的非静态成员函数中访问类的非静态成员时,编译器会自动将对象本身的地址作为一个隐含参数传递给函数,而不必一定写上this。所以本题答案为C。
转载请注明原文地址:https://jikaoti.com/ti/R6l0FFFM
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
下列关于模板形参的叙述中,错误的是
下列C++流的操作符中,能够设置浮点数精度的是
以下关键字不能用来声明类的访问权限的是()。
软件按功能可以分为:应用软件、系统软件和支撑软件(或工具软件)。下面属于应用软件的是( )。
若MyClass为一个类,执行语句"MyClassa[4],*p[5];"时会自动调用该类构造函数的次数是
数据流图中带有箭头的线段表示的是()。
下列有关继承和派生的叙述中,正确的是()。
层次型、网状型和关系型数据库划分原则是( )。
下面对软件特点描述错误的是
按照标识符的要求,下列选项中,()符号不能组成标识符。
随机试题
怎样认识资本主义为社会主义取代的历史必然性和长期性?
Theconferencewasorganizedforallthe______inthecity
操作系统的基本功能是()。
安全生产监察工作要坚持原则,过好“权利关”“人情关”和()。
甲、乙两家施工单位以联合承包方式,承揽某建设工程的施工任务。下列说法中,不符合我国《建筑法》规定的是()。
(2016年)企业对固定资产进行后续计量时.账面价值与计税基础不一致的原因有()。
社会政策的概念起源于()。
在热闹的聚会上或逛自由市场时,如果你与朋友聊天,朋友说话时的某个字可能被周围的噪音覆盖但你还是能知道你的朋友在说什么,这是知觉的()在起作用。
下列哪组不属于夺命“急症”?()
(2013年下半年上午试题13)为说明某一问题,在学术论文中需要引用某些资料。以下叙述中错误的是______。
最新回复
(
0
)