首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序的输出结果为( )。 #include<iostream.h> void main( ) { char*a[ ]={ }"hello","the","world"}; char * * pa=a:
下列程序的输出结果为( )。 #include<iostream.h> void main( ) { char*a[ ]={ }"hello","the","world"}; char * * pa=a:
admin
2020-05-14
28
问题
下列程序的输出结果为( )。
#include<iostream.h>
void main( )
{
char*a[ ]={ }"hello","the","world"};
char * * pa=a:
pa++;
cout<< * pa<<end1:
}
选项
A、hello
B、the
C、world
D、hellotheworld
答案
B
解析
本题主要考查的是指针数组和指向指针的指针之间的关系,其中a是指针数组,pa是指向指针数组行的指针,所以pa自加1相当于指向下一行。
转载请注明原文地址:https://kaotiyun.com/show/Cv8p777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
在设计程序时,应采纳的原则之一是
下列程序的输出结果是【】。#include<iostream.h> #include<string.h>voidmain(){charb[30];strcpy(&b[0],"XY")
重载赋值操作符时,应声明为()。函数。
下列模式中,能够给出数据库物理存储结构与物理存取方法的是______.
下面程序输出的结果为()。#include<iostream.h>voidfun(inta,intb){inttemp;temp=a;a=b;b=temp;}void
如果使用数组名称为函数参数,形实结合时,传递的是______。
诊断和改正程序中错误的工作通常称为______。
在深度为5的完全二叉树中,度为2的结点数最多为______。
A、 B、 C、 D、 D虚函数在运行阶段和类的对象绑定在一起,这样成为动态联编。虚函数声明只能出现在类声明中虚函数原型中,而不能在成员的函数体实现的时候。必须由成员函数来调用或者通过指针、引用来访问虚函数。
关于面向对象的程序设计方法,下列说法正确的是
随机试题
气血两虚证的临床表现是
脐中痛不可忍,喜温喜按者,其病机为
住宅单套建筑面积定位应为()较为适当。以上各题分别对该项目进行了()。
干粉灭火系统减压阀安装要求,减压阀的流向指示箭头与介质流动方向(),压力显示装置安装在便于人员观察的位置。
部门规章可以就尚未制定法律、行政法规的()行政处罚进行设定。
存货成本审计不应包括的内容有()。
A、 B、 C、 D、 E、 D
•Readthetextbelowaboutcommunicatingingroups.•Inmostofthelines41—52thereisoneextraword.Itiseithergrammatica
Beforethewarbrokeout,manypeople______insafeplacespossessionstheycouldnottakewiththem.
看到那个球员站不起身来,观众十分同情他。(sb.’sheartgoesouttosb.)
最新回复
(
0
)