首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列语句或语句序列中错误的是
下列语句或语句序列中错误的是
admin
2021-07-02
39
问题
下列语句或语句序列中错误的是
选项
A、int a;const int *point = &a;
B、const int a = 10;
C、const int *point = 10;
D、const int *point = new int(10);
答案
C
解析
本题考查常指针,C选项中不能直接将整型变量赋值给常指针,所以C选项错误。
转载请注明原文地址:https://kaotiyun.com/show/6ifp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有如下类定义classAnimal{public:virtualvoidName()=0;};classKoala:publicAnimal{public:voidName
下列关于虚函数的说明中,正确的是()。
已知有数组定义chara[3][4];下列表达式中错误的是()。
数据库系统的三级模式不包括()。
要利用C++流实现输入输出的各种格式控制,必须在程序中包含的头文件是()。
通过运算符重载,可以改变运算符原有的()。
当使用fstream流类定义一个流对象并打开一个磁盘文件时,文件的隐含打开方式为()。
数据库设计的四个阶段是:需求分析、概念设计、逻辑设计和()。
使用VC6打开考生文件夹下的源程序文件modil.cpp,该程序运行时有错误,请改正程序中的错误。本程序要求实现的功能为:从键盘输入一个字符串,并将结果保存到文件modil.txt中。注意:不要改动main函数,不能增行或删行,也不能更改程序的结
有如下语句序列:charstr[10];ci>>str;当从键盘输入’’Ilovethisgame’’时,str中的字符串是()。
随机试题
人民是依法治国的主体和力量源泉,人民代表大会制度是保证人民当家作主的根本政治制度。()
下列不属于基底节的是
急性牙髓炎自发痛的时间最明显的特点为
关于企业所得税的说法,下列哪一选项是错误的?(2009年试卷一第27题)
会计的对象就是特定主体的()。
A公司主要从事汽车的研发、生产与销售,拥有多个自主汽车品牌,截止2017年,A公司已涉及工程机械、新能源、新能源汽车、信息技术服务、现代物流等六大产业,构筑了资源共享的优势产业链。A公司于2003年首次公开发行股票并在上海证券交易所上市。A公司2
在中国刺绣中,其代表性绣品描述正确的是()。
【2014年山东烟台.多选】教师在职业道德修养中要达到慎独,应着重从()下功夫。
警察要求司机停车,司机就必须将车开到路边停下,这种现象是()。
A、 B、 C、 D、 B
最新回复
(
0
)