1、下列程序执行后的输出结果是()。include <stdio.h> include <string.h> int main() { char arr[2][4]; strcpy(arr[0],"you"); strcpy(arr[1],"me"); strcat(arr[0],arr[1]); printf("%s\n", arr[0]); return 0; }
相似题目
-
下列程序执行后的输出结果是() main() { int x='f'; printf(""%c \n"",'A'+(x-'a'+1)); }
-
有以下程序: #include void main() { char a[][10] = {'Morning', 'Afternoon', 'Evening', 'Night'}; printf('%s',a[1]); } 程序运行后的输出结果是__________。
-
有以下程序 #include void main() { int y=10; while(y--); printf('y=%d',y); } 程序执行后的输出结果是_______。
-
以下程序执行后的输出结果是________。 #include \stdio.h\ void main() { int i; for(i=1;i<=40;i++) { if(i++%5==0) if(++i%8==0) printf(\%d\,i); } printf(\\\n\); }
-
有以下程序#include #include main(){ char str[ ][20]={“One*World”, “One*Dream!”},*p=str[1];printf(“%d,”,strlen(p));printf(“%s ”,p);}程序运行后的输出结果是( )
-
有如下程序段,执行后的输出结果是______。 #include void main() { struct a { int x; int y; }num[2]={{20,5},{6,7}}; printf('%d',num[0].x/num[0].y*num[1].y); }
-
有以下程序:#include#includevoid main(){ char str[][10]={'oneWorld','oneDream!'};printf('%d,',strlen(str[1]));printf('%s ',str[1]);}程序运行后的输出结果是______。
-
以下程序程序运行后的输出结果是_____。#include#define MA(x) x*(x-1)void main(){ int a = 1, b = 2;printf('%d ', MA(1+a+b));}
-
有下列程序 #include void main() { int a=0,b=0,c=0; if (++a || ++b && ++c) printf('%d,%d,%d', a, b, c); } 程序执行后的输出结果是________。
-
有一下程序 #include int main() { int k=5; while(--k) { printf(\%d\,k-=3); } printf(\\\n\); return 0; } 执行后的输出结果是
-
有下列程序,程序运行后的输出结果是0( )。#include int main( ){int a[5]={1,2,3};printf(\%d \,a[3]);return 0;}
-
有以下程序: include <stdio.h> void f(); } 执行后的输出结果【 】。
-
有以下程序: include <stdio.h> main() { char k; int i; for(i=1;i<3;i++) { scanf("%c",&k); switch(k) { case &39;0&39;: printf("another\n"); case &39;1&39;: printf("number\n"); } { } 程序运行时,从键盘输入:01<回车>,程序执行后的输出结果是()。
-
有以下程序: include main() {int a=1,b=0; printf("%d,",b=a+b); printf("%d\n",a=2+b); ‘’ } 程序运行后的输出结果是()。
-
有下列程序:include<stdio.h>main(){ int a=6,b=7,m=1;switch(a%2){ case 0:m++;break;case 1:m++;switch(b%2){ defaut:m++;case0:m++;break;}}printf("%d\n",m);}程序运行后的输出结果是()。
-
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
-
有下列程序 include<stdio.h>main()); } 程序执行时若输入: welcome you to beijing<回车>,则输出结果是
-
有以下程序: include<stdio.h> include<string.h> main() {char str[][20][{"One*World","One*Dream!"},*p=str[1]; prinft("%d,",strlen(p));printf("%s\n",p); } 程序运行后的输出结果是()。
-
◑有以下程序◑include◑include◑main( )◑{char x[]=“STRING”;◑x[0]=0;x[1]=’\0’;x[2]=’0’;◑printf(”%d%d\n”,sizeof(x),strlen(x));◑}◑程序运行后的输出结果是( )。◑6 1◑7 0◑6 3◑7 1
-
有下列程序,程序运行后的输出结果是( )。 #include <stdio.h> int main() { int i,sum; for (i=1;i<6;i++) sum+=sum; printf("%d",sum); return 0; }
-
有以下程序:include<stdio.h>main(){ina=5,b=1,t;t=(a<<2)|b;printf("%",t);}程序运行后的输出结果是()
-
有以下程序 include <stdio.h> main() { int a=1, b=3, c=5; int *p1=&a, *p2=&b, *p=&c; *p =*p1*(*p2); printf("%d\n",c); }执行后的输出结果是()
-
有以下程序include <stdio.h>main){ ina=-1b=-1;for(a;)++b;printf("%d,%"ab);}程序运行后的输出结果是()
-
有以下程序include<stdio.h>main{inty=10;while(y--);printf(y=%d\n,y);}程序执行后的输出结果是()
推荐题目
- 手动阀由什么控制?()。
- 当温度升高时,所有油品的黏度都升高,而温度降低时则黏度降低。
- 治疗敏感大肠杆菌所致肠道感染且内服不易吸收的药物是()
- ()是文艺复兴时期牧歌剧的创立者。
- 新安装的电气设备,如有厂家试验合格证,既可投入运行。
- 工程量清单漏项或设计变更引起的工程量清单项目,其相关综合单价由发包人提出,经业主或监理工程师确认后作为结算的依据()判断对错
- 终结的工作票应盖上“已终结”章,并保存1年()
- 某药厂上市销售的国内独家新药其药品通用名称可作为药品商标使用。此题为判断题(对,错)。
- 阅读《窦娥冤》的评课记录,按照要求答题。关汉卿是了不起的大戏剧家.但关汉卿的经历以及写作背景,与高一学生之间的距离太远了。再加上剧本这样的文学样式,学生很难进入文本。到底怎么教,是一个难题,但也不是不可逾越的。张老师执教关汉卿的《窦娥冤》,把教学重点放在“戏剧语言”上,着重抓对白的运用,她通过补充对白的内容,让学生理解《窦娥冤》。抓对白的形式,是从语言开始进入;补充对白,是让学生理解对白背后的潜台
- 以下哪些不属于一类票务事故()