首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若运行时从键盘上输入OPEN THE DOOR,以下程序的输出结果是( )。 char fun(char*C){if(*e<=’Z’&&*c>=’A’) *c一=’A’一’a’: return*c;} main(){char s[81],*p=s; ge
若运行时从键盘上输入OPEN THE DOOR,以下程序的输出结果是( )。 char fun(char*C){if(*e<=’Z’&&*c>=’A’) *c一=’A’一’a’: return*c;} main(){char s[81],*p=s; ge
admin
2017-10-24
20
问题
若运行时从键盘上输入OPEN THE DOOR,以下程序的输出结果是( )。
char fun(char*C){if(*e<=’Z’&&*c>=’A’)
*c一=’A’一’a’:
return*c;}
main(){char s[81],*p=s;
gets(s);
while(*P){
*p=fun(p);
putchar(*P);
p++;}
prinnf(’’\n’’);}
选项
A、OPEN THE DOOR
B、open the door
C、oPEN tHE dOOR
D、Open The Door
答案
B
解析
题目中函数fun的主要功能是判断字符是否为大写字符,如果是则转换为小写字符,主函数读入大写字符串,转换成小写,所以输出结果应该是全部小写的字符串。
转载请注明原文地址:https://kaotiyun.com/show/NIxp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序#include<stdio.h>main(){inty=9;for(;y>0;y--)if(y%3==0)printf("%d",--y);}程序的运行结粜是()。
设有定义:FILE*fw;,请将以下打开文件的语句补充完整,以便可以向文本文件readme.txt的最后续写内容。fw=fopen("readme.txt","()")
以下程序的输出结果是()。#include<string.h>main(){chara[]={’\1’,’\2’,’\3’,’\4’,’\0’};printf("%d%d\n",sizeof(A),st
数据结构分为线性数据结构和非线性数据结构,带链的队列属于()。
在一个C源程序文件中所定义的全局变量,其作用域为()。
有以下程序:main(){inta[4][4]={{1,4,3,2,},{8,6,5,7,},{3,7,2,5,},{4,8,6,1,)},i,j,k,t;for(i=0;i<4;i++)for(j=0;j<3;j++)
若整型变量a、b、c、d中的值依次为1、4、3、2。则条件表达式a<b?a:c<d?c:d的值是()。
在嵌套使用if语句时,C语言规定else总是()。
对于一个正常运行的C语言程序,以下叙述中正确的是()。
若有函数voidfun(doublea[],int*n){……}以下叙述中正确的是
随机试题
按谈判的内容来划分,商务谈判中数量最多的一种谈判是()
耕牛,4头,一直很健康,10月底上午,放牧于收割20多天后的再生幼苗和青草茂盛的玉米茬地,牛食欲旺盛,下午想将牛赶回去时,发现4头均发病,流涎、呼吸困难、抬头伸颈、肚腹鼓胀、张口喘气,且站立不稳,表现不安,身体局部出汗,体温基本正常,求诊。兽医到现场前已有
患儿,5岁半。右下后牙肿疼两日。检查右下第二乳牙磨牙冠大部分破坏,龋洞较深,叩(+)松动2度,颊侧牙龈处有0.5mm×0.5mm脓肿。X片示根吸收1/3,根分歧有低密度影如果治疗后右下第二乳磨牙仍然松动,症状不缓解,应做何种处理
维生素A缺乏时引起()
下列优于《海商法》所称的船舶优先权的是:()
关于施工现场大气污染的处理方法,说法正确的是()。
心理测验按测验的内容可分为两大类,一类是能力测验,另一类是()。
在幼小的儿童身上常常见到破涕为笑,脸上挂着泪水又笑起来的情况,这主要是因为()。
垄断资本向世界范围扩展的基本形式有三种:第一种是借贷资本输出,即由资本主义国家的政府、银行、企业把资本贷给其他国家的政府、银行或企业;第二种是生产资本输出,即在国外直接投资,独立创办企业,与外国资本合营,或者收购外国已有的企业等。第三种是商品资本的输出。从
手紙を書く()も、メールを送るのが一般的です。
最新回复
(
0
)