首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列语句或语句序列中错误的是
下列语句或语句序列中错误的是
admin
2015-07-22
19
问题
下列语句或语句序列中错误的是
选项
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/twNp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有如下程序:#includeusingnamespacestd;classMonitor{public:Monitor(chart):type(t){}voidPrint()const{cout
已知函数fun的原型为intfun(int,int,int);下列重载函数原型中错误的是
两个变量定义不能同名,是因为()。
在C++语言中,main函数默认返回一个()类型的值。
磁盘文件操作中,打开磁盘文件的访问模式常量时,()是以追加方式打开文件的。
如果要把返回值为void的函数A声明为类B的友元函数,则应在类B的定义中加入的语句是【】。
数据库、数据库系统和数据库管理系统之间的关系是()。
设有下列二叉树: 对此二叉树前序遍历的结果为
静态联编所支持的多态性称为______多态性,动态联编所支持的多态性则称为______多态性,动态多态性由______来支持。
下列有关数据库的描述,正确的是
随机试题
微型电池已成为全球研究热点,三维微电池是微型电池的发展趋势。下列不属于三维微电池特点的是()。
交通性睾丸鞘膜积液哪项是正确的
下列哪一项不属于泻下剂之适应证
厌食的基本治疗法则是( )
施工技术组织措施主要包括:( )。
某单位办公楼,地下1层,地上20层,建筑高度76m,建筑面积32000m2,耐火等级为一级。负1层为设备房;1层裙房为会议报告厅,有固定座椅1550个;2至20层为标准层,走道两侧布置办公房间、小会议室,内走道长度25米,设有可开启外窗。根据以
报关单位有下列()情形时,海关取消其报关权。
下列关于世界著名音乐家说法对应正确的是()。
Forthispart,youareallowed30minutestowritealetterofrecommendationforoneofyourstudentswhoapplyforstudyingab
Vegetarianswouldprefernottobecompelledtoeatmeat.Yetthereversecompulsion(强迫)ishiddenintheproposalsforanewp
最新回复
(
0
)