首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若输入bcdefgh、m、abcdefg,以下程序的输出结果为( )。 #include<stdio.h> #include<string.h> main() { int i; char string[20],str[
若输入bcdefgh、m、abcdefg,以下程序的输出结果为( )。 #include<stdio.h> #include<string.h> main() { int i; char string[20],str[
admin
2011-06-10
21
问题
若输入bcdefgh、m、abcdefg,以下程序的输出结果为( )。 #include<stdio.h> #include<string.h> main() { int i; char string[20],str[3][20]; for(i=0;i<3;i++)gets(str
); if(strcmp(str[0],str[1])>0) strcpy(string,str[0]); else strcpy(string,str[1]); if(strcmp(str[2],string)>0) strcpy(string,str[2]); printf("%s",string); }
选项
A、bcdefgh
B、m
C、abcdefg
D、bcdefgh或abcdefg
答案
B
解析
转载请注明原文地址:https://kaotiyun.com/show/K3Pp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
以下程序运行后的输出结果是【 】。main( ) { inta,b,c; a=25; b=025; c=0x25; printf("%d%d%d\n",a,b,c); }
有以下程序 main() {inti=0,x=0;for(;;){if(i==3||i==5)continue;if(i==6)break;i++;s+=i;};
设x和y均为int型变量,且x=1,y=2,则表达式double(1+x/y)的值为【】。
已有定义:inti,a[10],*p;则合法的赋值语句是()。
下列说法不正确的是()。
若a=1,b=2,则表达式!(x=A)‖(y=B)&&0的值是______。
数据结构分为逻辑结构和存储结构,循环队列属于______结构。
有以下程序,其中函数f的功能是将多个字符串按字典顺序排序#include<string,h>voidf(char*p[],intn){char*t;inti,j;for(i=0;i<n-
随机试题
临床常用的腧穴定位方法是
斜面裂形成的原因是
下列各项,不属导致崩漏常见病因的是
关于当事人适格的表述,下列哪一选项是错误的?(2008—卷三—44,单)
在通过合作项目批量获取个人贷款客户的情况下,商业银行应重点审查()。
纳税人自产货物用于下列用途时,不需缴纳增值税的有()。
F
Astudentwhoentersauniversityinthesecondhalfof20thcenturyisinanewsituation.Heisnotliketheyoungmanofthe
Thepairofwords"lend"and"borrow"are
Theconceptofstudentexchangebetweencountriesisnotanewone.Itisacommon【B1】______inmanyEuropeancountriesandtheU
最新回复
(
0
)