题目内容 (请给出正确答案)
[单选题]

下列程序的运行结果是()。 #include<stdio.h> main() { int a=0,b=4,c=0,d=10,x; if(a) d=d-10; else if(!b) if(!c) x=15; else x=25; printf("%d\n",d); }

A.5

B.3

C.20

D.10

提问人:网友smallc 发布时间:2022-01-06
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有5位网友选择 A,占比29.41%
  • · 有4位网友选择 C,占比23.53%
  • · 有3位网友选择 B,占比17.65%
  • · 有2位网友选择 A,占比11.76%
  • · 有2位网友选择 B,占比11.76%
  • · 有1位网友选择 D,占比5.88%
匿名网友 选择了A
[39.***.***.172] 1天前
匿名网友 选择了C
[46.***.***.19] 1天前
匿名网友 选择了B
[205.***.***.252] 1天前
匿名网友 选择了B
[179.***.***.212] 1天前
匿名网友 选择了C
[189.***.***.109] 1天前
匿名网友 选择了A
[180.***.***.79] 1天前
匿名网友 选择了C
[173.***.***.253] 1天前
匿名网友 选择了A
[177.***.***.0] 1天前
匿名网友 选择了C
[27.***.***.121] 1天前
匿名网友 选择了A
[177.***.***.0] 1天前
匿名网友 选择了B
[205.***.***.252] 1天前
匿名网友 选择了B
[179.***.***.212] 1天前
匿名网友 选择了C
[189.***.***.109] 1天前
匿名网友 选择了A
[180.***.***.79] 1天前
匿名网友 选择了C
[173.***.***.253] 1天前
匿名网友 选择了C
[46.***.***.19] 1天前
匿名网友 选择了C
[27.***.***.121] 1天前
匿名网友 选择了B
[133.***.***.208] 1天前
匿名网友 选择了B
[36.***.***.64] 1天前
匿名网友 选择了A
[178.***.***.86] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“下列程序的运行结果是()。#include<stdio.h>…”相关的问题
第1题
下面程序段的运行结果是 。 #include "stdio.h" void main( ) { int a=1, b=2,c=2,t; while (a <c) {t="a;a=b;b=t;c--;}" printf("%d,%d,%d",a,b,c);> A、2,1,0

B、1,2,1

C、1,2,0

D、2,1,1

E、1,1,1

点击查看答案
第2题
以下程序的运行结果是( )。 #include "stdio.h" main( ) { int a=24,b=16,c; c=abc(a,b); printf("%d",c); } int abc(int u,int v) { int w; while(v) { w=u%v;u=v;v=w; } return u; }

A、6

B、7

C、8

D、9

点击查看答案
第3题
以下程序的输出结果是()。 #include "stdio.h" int main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf("a=%d,b=%d\n",a,b); return 0; }

A、a=2,b=1

B、a=1,b=1

C、a=1,b=0

D、a=2,b=2

点击查看答案
第4题
以下程序的输出结果是(  )。

#include<stdio.h>

#include<math.h>

main()

{int a=1,b=4,c=2;

float x=10.5,y=4.0,z;

z=(a+b)/c+sqrt((double)y)*1.2/c+x;

pritnf("%f\n",z);}

A.14.000000  B.015.400000

C.13.700000 D.14.900000

点击查看答案
第5题
下面程序的运行结果是()。

include<stdio.h>

main()

{int a=25;

fun(&A);

}

fun(int *x)

{ printf("%d\n",++*x);

}

点击查看答案
第6题
下列程序的输出结果是16.00,请在程序中填空。 #include "stdio.h" main( ) { int a=9,b=2; float x=________ , y=1.1,z; z=a/2+b*x/y+1/2; printf("%5.2f", z ); }

A、7.7

B、6.6

C、5.5

D、6.05

点击查看答案
第7题
有下列程序: #include " stdio.h" main() { int x=0; int y=0; while (x<7&&++y) { y--; x++;} printf("%d,%d",y,x); } 程序的输出结果是()。

A.0, 7

B.7, 7

C.0,6

D.1,6

点击查看答案
第8题
#include"stdio.h" int main( ) {int x=1,a=0,b=0; switch(x) {case 0:b++; case 1:a++; case 2:a++;b++; } printf("%d,%d",a,b); return 0; } 该程序的输出结果是( )

A、2,2

B、2,1

C、1,1

D、1,0

点击查看答案
第9题
下面程序段执行后的输出结果是( )。 int a; char c=10; float f=100.0; double x; a=f/=c*=(x=6.5); printf("%d└┘%d└┘%3.1f└┘%3.1f",a,c,f,x);

A、1└┘65└┘1└┘6.5

B、1└┘65└┘1.5└┘6.5

C、1└┘65└┘1.0└┘6.5

D、2└┘65└┘1.5└┘6.5

点击查看答案
第10题
有以下程序: #include <stdio.h> main() { int a[] = {2,4,6,8,10} ,y =0,x, * p; p =&a[1]; for(x=1;x<3;x++)y+ =p[x]; printf("% d \n" , y); }程序运行后的输出结果是()。

A.10

B.11

C.14

D.15

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

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

简答题官方微信公众号

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

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

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