首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() { char a[]=""Hello,World"; char*ptr = a;
下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() { char a[]=""Hello,World"; char*ptr = a;
admin
2009-01-15
17
问题
下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() { char a[]=""Hello,World"; char*ptr = a; while(*ptr) { if(*ptr>= ’a’ &&*ptr<=’z’) cout<<char(*ptr+’A’-’a’); else cout<<*ptr; ptr++; } retur 0; }
选项
A、HELLO, WORLD
B、Hello, World
C、HELLO, world
D、hello, world
答案
1
解析
转载请注明原文地址:https://kaotiyun.com/show/S4kp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
支持子程序调用的数据结构是( )。
以下程序的输出结果是()。#include<stdio.h>main(){inta=4,b=3,c=2,d=1;printf("%d",a<b?a:d<c?d:b);}
有以下程序:#include#definePT3.5#defineS(x)PT*x*xmain(){inta=1,b=2;printf("%4.1f\n",S(a+b));
下列叙述中正确的是()。
下列各组排序法中,最坏情况下比较次数相同的是()。
在软件生产过程中,需求信息的来源是()。
给定程序中已建立一个带有头结点的单向链表,链表中的各结点按结点数据域中的数据递增有序链接。函数fun的功能是:把形参X的值放入一个新结点并插入到链表中,插入后各结点数据域的值仍保持递增有序。请在程序的下划线处填入正确的内容并把下划线删除,使程序得
已知大写字母A的ASCII码值是65,小写字母a的ASCII码值是97。以下不能将变量c中的大写字母转换为对应小写字母的语句是()。
软件设计中模块划分应遵循的准则是()。
在关系数据库中,描述全局数据逻辑结构的是
随机试题
在泥泞路段行车要牢牢握住转向盘加速通过。
埋弧自动焊机按启动按钮后线路工作正常,但引不起弧,其原因分析不合理的是()。
Dogsaresocialanimalsandwithoutpropertraining,theywillbelikewildanimals.Theywillspoilyourhouse,destroyyourbe
一中国公司与沙特公司订立的合同产生了纠纷并诉诸中国法院,该合同选择适用沙特法律。当无法查明沙特法时,依我国的相关司法解释,下列哪一选项是正确的?()
如图3-382所示刚架,位移A相同的是:[2010年第48题]
房地产开发商开发完成的商品房.属于投资性房地产。()
甲股份有限责任公司(以下简称“甲公司”)2020年所有者权益变化情况如下: (1)2020年初股本总额为1000万股,每股面值为1元;资本公积为2000万元;盈余公积为5000万元;未分配利润为600万元。甲公司占A公司有表决权股份的25%。 (2)2
请认真阅读下列材料,并按要求作答。低年级美术课堂教学中,如何培养学生的想象力?
A、条件(1)充分,但条件(2)不充分B、条件(2)充分,但条件(1)不充分C、条件(1)和(2)单独都不充分,但条件(1)和条件(2)联合起来充分D、条件(1)充分,条件(2)也充分E、条件(1)和条件(2)单独都不充分,条件(1)和条件(2)联
Psychologistssaytherearetwodifferentkindsofloneliness.
最新回复
(
0
)