首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序的输出结果为 #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
2010-06-06
30
问题
下列程序的输出结果为 #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
答案
2
解析
本题主要考查的是指针数组和指向指针的指针之间的关系,其中a是指针数组,pa是指向指针数组行的指针,所以pa自加1相当于指向下一行。
转载请注明原文地址:https://jikaoti.com/ti/pCW0FFFM
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
若有以下定义,则对数组元素的正确引用是()。inta[5],*p=a;
有以下程序段int*p1,*p2,a[10];p1=a;p2=&a[5];则p2-p1的值为
在数据库管理系统提供的数据语言中,负责数据的查询、增加、删除和修改等操作的是
以下能正确表述算式sin(2πr+30°)的C语言表达式是()。
下列关于栈的叙述正确的是( )。
设有定义:chars[10];inti=0;,以下不能将一行(不超过100个字符)带有空格的字符串正确读入的语句或语句组是()。
程序测试的目的是()。
下列程序中声明了两个类AA和BB,其中函数“print”是类AA的成员函数,但是类BB的友元函数。请在①、②和⑧处各填入正确的内容,使程序能正常运行。#include<iostream.h>【】;classAA{
为了克服软件危机,人们提出了用______的原理来设计软件,这就是软件工程诞生的基础。
随机试题
以车辆制造业为例,说明供应商一体化的特点。
下面句子中的“鄙”属于意动用法的一项是()。
双标记免疫荧光技术可以检测
《政府采购货物和服务招标投标管理办法》规定,招标采购单位收到投标文件后,应当签收保存,任何单位和个人不得在()前开启投标文件。
下列基本概念叙述中,错误的是()。
在代建制的克服“三超”现象的作用中,“三超”不包括()。
某投资项目需要20万元固定资产投资,预备费投资1万元,通过银行借款10万元,年利率为5%,期限为一年,项目建设期为零,固定资产预计无残值,使用寿命为5年,直线法计提折旧,则年折旧额为4.2万元。()
社会刻板印象
根据以下资料,回答下列题。某公司对新年联欢会的节目进行初选,组织三个部门的员工对六个节目进行投票(喜欢哪个节目就投那个节目的票)。其中甲为古筝弹奏表演,乙为健美操表演,丙为京剧表演,丁为小品表演,戊为小合唱表演,己为街舞表演。在营销部门最受欢
StopSpamWhenIfirstgotane-mailaccounttenyearsago,Ireceivedcommunicationsonlyfromfamily,friends,andcolleagu
最新回复
(
0
)