重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 自考
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[主观题]

以下程序运行后的输出结果是______。main(){int x=1,y=0,a=0,b=0;switch(x){case 1:switch(y){cas

以下程序运行后的输出结果是______。

main()

{int x=1,y=0,a=0,b=0;

switch(x)

{case 1:switch(y)

{case 0:a++;break;

case 1:b++;break;

}

case 2:a++;b++;break;

}

printf("%d%d\n",a,b);

}

答案
查看答案
更多“以下程序运行后的输出结果是______。main(){int x=1,y=0,a=0,b=0;switch(x){case 1:switch(y){cas”相关的问题

第1题

以下程序运行后的输出结果是______。 main { inn a=b= c=5: if (c=a+b

以下程序运行后的输出结果是______。 main { inn a=b= c=5: if (c=a+b) printf ("yes\n); else printf ("no\n); }

点击查看答案

第2题

以下程序运行后的输出结果是【 】。 main() { int p=30; printf("%dkn",(p/3>0?p/10:

以下程序运行后的输出结果是【 】。 main() { int p=30; printf("%dkn",(p/3>0?p/10:p%3)); }

点击查看答案

第3题

以下程序运行后输出的结果是______。main(){int a=1,b;for(b=1;b<=10;b++)(if(a>=8)break;if(a%2=

以下程序运行后输出的结果是______。

main()

{int a=1,b;

for(b=1;b<=10;b++)

(if(a>=8)break;

if(a%2==1){a+=5;continue;}

a==3:

}

printf("%d\n",b);

}

点击查看答案

第4题

以下程序运行后的输出结果是【 】。 include <stdio.h> define S(x) 4 * x * x + 1

以下程序运行后的输出结果是【 】。 include <stdio.h> define S(x) 4 * x * x + 1 main() { int i=6,j=8; prinff("% d \ n" , S(i + j) ); }

点击查看答案

第5题

以下程序运行后的输出结果是【 】。 include <stdio.h> msin() { int i,n[]={0,0,0,

以下程序运行后的输出结果是【 】。 include <stdio.h> msin() { int i,n[]={0,0,0,0,0}; for(i=1;i<=4;i++) { n[i]=n[i-1]*2+1; printf("%d",n[i]); } }

点击查看答案

第6题

有以下程序,程序运行后的输出结果是()main(){int a[10]={1,2,3,4,5,6,7,8,9,10),*p=&a[3],*q=p+2;printf("%d\11",*p+*q);}

A.16

B.10

C.8

D.6

点击查看答案

第7题

以下程序运行后的输出结果是【 】。 include <stdio, h> main() char c1 ,c2; for(e

以下程序运行后的输出结果是【 】。 include <stdio, h> main() char c1 ,c2; for(el = 0, c2 =9; e1<c2; c1 + + , c2 -- ) printf(" %c%c", c1, c2 ); printf("\n" ); }

点击查看答案

第8题

有以下程序()main(){char p[]={'a','b','C'},q[]="abc";printf("%d%d",sizeof(p),sizeof(q));}程序运行后输出的结果是

A.4 4

B.3 3

C.3 4

D.4 3

点击查看答案

第9题

以下程序运行后,输出结果是 () include<stdio.h> define PT5.5 define S (x)PT* x *

以下程序运行后,输出结果是 () include<stdio.h> define PT5.5 define S (x)PT* x * x main() { int a=1,b=2; printf("%4.1f\n",s(a+b)); }

A.49.5

B.9.5

C.22

D.45

点击查看答案

第10题

以下程序运行后的输出结果是______。 inClude <strinq.h> char *ss(char *s)

以下程序运行后的输出结果是______。 inClude <strinq.h> char *ss(char *s) { char *p;t; p=S+1;t=*s; while(*p){*(p-1)=*p;p++;} *(p-1)=t; return s; } main() { char *p,str[10]="abcdefgh"; p=ss(str); printf("%s\n",p); }

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝