首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列定义中p指向的地址可更改,但 * p不能够更改的是
下列定义中p指向的地址可更改,但 * p不能够更改的是
admin
2013-05-30
22
问题
下列定义中p指向的地址可更改,但 * p不能够更改的是
选项
A、const int * p;
B、int * const p;
C、const int * const p;
D、int * p;
答案
A
解析
const int * p;是只能改变指针地址,int * const p;是只能改变 * p的内容,const int * const p;是指针的地址和 * p的内容都不能改变,int * p;是两者都能改变。
转载请注明原文地址:https://kaotiyun.com/show/LQNp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
如果表达式y*x++中,“”是作为成员函数重载运算符,“++”是作为友元函数重的运算符,采用运算符函数调用格式,该表达式还可表示为()。
有如下程序#include<iostream>#include<iomanip>usingnamespacestd;classMyClass{public:MyClass(){cout<<’A’;}MyClass(charc){co
有如下函数模板声明:template<typenameT>TMax(Ta,Tb){return(a>=b)?a:b;}下列对函数模板Max()的调用中错误的是()。
可以用p.a的形式访问派生对象p的基类成员,其中a是______。
下列叙述中错误的是()。
下列关于运算符重载的描述中,______是正确的。
由关系数据库系统支持的完整性约束是指【】和参照完整性。
在软件测试中,白盒测试方法是通过分析程序的_______来设计测试用例的方法。
已知程序中已经定义了函数test,其原型是inttest(int,int,int);,则下列重载形式中正确的是()。
一棵二叉树中共有70个叶子结点与80个度为1的结点,则该二叉树中的总结点数为()。
随机试题
神经管的头段形成三个膨大的脑泡分别称________、________和________。
女性,43岁,10天前开始尿痛,尿频,近3日高热40℃,口渴,恶心,呕吐,全身酸痛,腰部疼痛尤为显著。尿常规白细胞满视野,尿糖(+++),血糖6.1mmol/L。下列哪项治疗原则暂不考虑使用
施工成本可以按成本构成分解为人工费、材料费和()等。
下列哪项不属于统计执法检查的内容?()
下列所得,可享受企业所得税减半征收优惠的是()。
《中华人民共和国消费者权益保护法》规定,在交易过程中应当遵循()原则。
远期合同采购的特点是()。
新技术不断刷新着人们的生活。游客徐先生提前通过某景区的微信预定了该景区的门票,通过支付宝支付后,当天直接到景区窗口取票。使用支付宝()。①使货币基本职能发生了本质性变化②没有改变商品交换的本质③相当于货币执行价值尺度的职能
(2016年真题)明知产品存在缺陷仍然实施某些行为,造成他人死亡或者健康严重损害的,被侵权人有权请求相应的惩罚性赔偿。这些行为包括()。
某公司新购进30台电脑,要分配给编号为1,2,3,4的四个部门,要求每个部门至少分得一台,并且每个部门所得的电脑数目不能少于该部门的编号数,则不同的分配方法共有()种.
最新回复
(
0
)