首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下程序段的输出结果是( )。 #include main() { char p[][4]={"ABC","DEF","GHI"}; int i; for(i=0;i
以下程序段的输出结果是( )。 #include main() { char p[][4]={"ABC","DEF","GHI"}; int i; for(i=0;i
admin
2021-04-28
49
问题
以下程序段的输出结果是( )。
#include
main()
{ char p[][4]={"ABC","DEF","GHI"};
int i;
for(i=0;i<3;i++)
puts(p
);
}
选项
A、ABC
B、A D G
C、A B C
D E F
D、A B C
G H I
答案
C
解析
本题首先定义了一个字符串数组p,通过for循环输出p[0]、p[1]、p[2]的值。
转载请注明原文地址:https://www.kaotiyun.com/show/yTtp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序#includemain(){intx=8;for(;x>0;x--){if(x%3){printf("%d,",x--);continue;}printf("%d,",--x);}}程序的运行结果是
有以下程序段intj;floaty;charname[50];scanf("%2d%f%s",&j,&y,name);当执行上述程序段,从键盘上输入555667777abc后,y的值为
若有以下程序#includemain(){inta=1,b=2,c=3,d=4,r=0;if(a!=1);elser=1;if(b==2)r+=2;else;if(c!=3)r+=3;else;if(d==4)
设a和b均为int型变量,且a=6,b=11,则能使值为3的表达式是()。
下列叙述中正确的是
以下叙述中正确的是
以下叙述中正确的是()。
以下能正确定义字符串的语句是()。
以下关于字符串的叙述中正确的是
随机试题
ThefamilyisthecenterofmosttraditionalAsians’lives.Manypeopleworryabouttheirfamilies’welfare,reputation,andhon
公园主路纵坡宜小于_______。
Itisn’toftenthatanentireindustryissymbolizedinthefigureofasinglehumanbeing,andsuchisthecasewithCanadiana
EAC和EA玫瑰花结阳性细胞是
房地产总登记后进行房屋买卖,必须办理变更登记。()
唐代著名的书法家有()
新生儿的心理,可以说一周一个样,满月之后,是一月一个样,可是周岁以后发展速度就缓慢下来,两三岁以后的儿童,相隔一周,前后变化就不那么明显了。这表明了学前儿童心理发展进程的基本特点是()。
注意分配(西南大学)
Ascollegeseniorshurtleintothejobhunt,littleliesontheresume—forexample,claimingadegreewhenthey’rethreecredits
Cheatingisnothingnew.Buttoday,educationandadministrationsarefindingthatinstancesofacademicdishonestyonthepart
最新回复
(
0
)