题目内容 (请给出正确答案)
[主观题]

下面程序的输出结果是()。 include <stdi0.h> include<string.h> main()

下面程序的输出结果是()。 include <stdi0.h> include<string.h> main() {char*pl=“abc”,str[50]=“xyz”; strcpy(Str+2,p1); printf(“%S\n”,Str); }

A.xyzabcABC

B.zabcABC

C.xyabc

D.yzabcABC

提问人:网友moker110 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
更多“下面程序的输出结果是()。 include <stdi0.h…”相关的问题
第1题
下面程序的输出结果是 。 #include <stdio.h> void main() { int m=0,n=0; while(m<5) m++; n++; printf("m="%d,n=%d\n&quot;,m,n);">
点击查看答案
第2题
下面程序的运行结果是______。 include<stdio.h> main() { union { int i[2]; long k; char c[4]; }t,*s=&t; s->i[0]=0x12; s->i[1]=0x34; print f("%1x\n",s->k); }
点击查看答案
第3题
运行下面程序后,输出是____. #include <stdio.h> void main( ) { int k=-3; if (k<=0) printf("****\n"); else printf("####\n") }> A、####

B、****

C、####****

D、有语法错误不能通过编译

点击查看答案
第4题
下述程序的输出结果是_______。 #include <stdio.h> void main() { int x=0,y=0,i; for(i=1;;++i) { if(i%2==0) {x++;continue;} if(i%5==0) {y++;break;} } printf (" %d,%d",x,y); }

A、2,1

B、2,2

C、2,5

D、5,2

点击查看答案
第5题
以下代码: <block wx:if="{{true}}"> <view> view1 </view> <view> view2 </view> </block> 的输出结果为( )

A、view1

B、view2

C、view1 和 view2

D、没有输出

点击查看答案
第6题
以下程序的输出结果是#include int fun(int x){ static int m=0; return(m *=x);}main(){ int s,i; for(i=l;i<=3;i++) s=fun(i); printf("%d\n",s);}
点击查看答案
第7题
#include <stdio.h> fun(int x) { if(x/2>0) fun(x/2); printf("%d ",x); } void main() { fun(6); printf("\n"); } 以上程序运行后的输出结果为( )。

A、6 3 1

B、1 3 6

C、6 5 4

D、4 5 6

点击查看答案
第8题
有以下程序: #include <stdio.h> int fun (int a,int b,int c) { c=a *b; } main() { int c; fun(2,3,c); printf(“%d\n”.c); } 程序的输出结果是_______.

A、0

B、1

C、6

D、无定值

点击查看答案
第9题
下列程序的运行结果是( ) #include <stdio.h> void fun(int x); int main() { fun(7); printf(""); return 0; } void fun(int x) { if(x/2>1) fun(x/2); printf("%2d",x); }

A、3 5

B、2 7

C、3 7

D、2 5

点击查看答案
第10题
以下程序的运行结果是4,2。 #include <stdio.h> void func(int a,int b); void main() { int a=4,b=2; func(a,b); printf("%d,%d",a,b); } void func(int a,int b) { int t; t=a; a=b; b=t; }
点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信