首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下头文件: 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
17
问题
有如下头文件:
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://kaotiyun.com/show/4Qyp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有如下程序:#includeusingnamespacestd;classPoint{public:Point(intxx=0,intyy=0):x(xx),
有如下函数定义:voidswap(inta,int&b){intc=a;a=b;b=c;}若执行语句序列intx=0,y=1;swap(x,y);则变量x和y的值分别是
支持子程序调用的数据结构是( )。
字符串"8+a=b\n\r"的长度为
若要在Viz类中将*重载为一元运算符,下列重载函数声明中肯定有错的是
必须用一对大括号括起来的程序段是()。
在面向对象方法中,不属于"对象"基本特点的是( )。
下列字符串中,不可以用做C++标识符的是()。
下列符号中不属于C++关键字的是()。
在学生管理的关系数据库中,存取一个学生信息的数据单位是
随机试题
设A,B为两个n阶矩阵,下列结论正确的是().
我国公务员的衔级直接对应
治疗虚劳肾阳虚证引起的遗精宜选方
患者女性,38岁,四肢大小关节肿痛12年,X线示双手指关节及腕关节有多处骨质破坏,关节检查仍有多个关节肿痛,脾肋下gem触及,质中偏硬,查WBC2×109/L,血小板60×109/L,ESR56mm/h,尿常规(-),10年来一直服用非甾体类消炎镇
根据社会保险法律制度的规定,关于社会保险基金管理运营的下列表述中,正确的有()。
公司只要有累计盈余即可发放现金股利。()
下列国家中,金融监管实行独立于中央银行的综合监管体制的是()。
You________betoocautiouswhenyouaredrivingespeciallyonthefreeway.
请完成下列语句中应填的内容:FilepathName=newFile(args[0]);Suing[]fileNames=pathName.【】;
FourWaystoBeHappierIftherewereaDr.Happiness,wouldyourushtogetinlinetoseehim,especiallyifhisprescript
最新回复
(
0
)