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

以下程序的输出结果是( )。 #include<stdio.h> main() { int a=2,c=5; printf("a=%%d,b=%%d\n",a,c);}

A.a=%2,b=%5

B.a=2,b=5

C.a=%%d,b=%%d

D.a=%d,b=%d

提问人:网友anonymity 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有4位网友选择 D,占比40%
  • · 有3位网友选择 B,占比30%
  • · 有2位网友选择 A,占比20%
  • · 有1位网友选择 C,占比10%
匿名网友 选择了D
[221.***.***.217] 1天前
匿名网友 选择了A
[245.***.***.189] 1天前
匿名网友 选择了D
[9.***.***.24] 1天前
匿名网友 选择了C
[173.***.***.173] 1天前
匿名网友 选择了D
[89.***.***.76] 1天前
匿名网友 选择了B
[223.***.***.176] 1天前
匿名网友 选择了A
[150.***.***.163] 1天前
匿名网友 选择了B
[145.***.***.73] 1天前
匿名网友 选择了D
[249.***.***.131] 1天前
匿名网友 选择了B
[244.***.***.200] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“以下程序的输出结果是()。 #include<stdio.h…”相关的问题
第1题
#include<stdio.h> main() { int a,b,c; a=5;b=7; c=a; a=b; b=c; printf("a=%d,b=%d\n",a,b,); } 运行结果为()

A、a=5,b=7

B、a=7,b=5

C、5,7

D、7,5

点击查看答案
第2题
以下程序的运行结果是()。 #include<stdio.h> main() {int a=3,b=4,c=8,d=4,m=1,n=3; printf("%d\n",(m=a>B)&&(n=c>D)); }

A.0

B.1

C.2

D.3

点击查看答案
第3题
有以下程序段int main() { int a=3,b=4,c=5,d=2; if(a>b) if(b>c) cout< <d++ +1; else return 0; }> A、2

B、3

C、43

D、44

点击查看答案
第4题
下面程序的输出结果是______。

#include<stdio.h>

main()

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

c-=++b;

b*=a+c;

{ intb=5,c=12;

c/=b*2;

a-=C:

printf('%d,%d,%d,",a,b,c);

a+=--c;

}

printf("%d,%d,%d,",a,b,c);

}

点击查看答案
第5题
以下程序的输出结果是()。 #inClude<stdio.h> main() { int a,b,d=241; a=d/100%9; b=(-1)&&(1); printf("%d,%d",a,b); }

A.6,1

B.2,1

C.6,0

D.2,0

点击查看答案
第6题
以下程序的运行结果是( )。 #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

点击查看答案
第7题
下列程序的输出结果是()。 #include <stdio.h> int b=2; int func(int *a) { b+=*a;return(b);} main() { int a=2, res=2; res+=func(&a); printf("%d\n",res); }

A.4

B.6

C.8

D.10

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

include<stdio.h>

main()

{ int a=1, b=7;

do {

b=b/2; a+=b;

} while(b>1);

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

}

点击查看答案
第9题
程序运行后的输出结果是()。 #include "stdio.h" main() { int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a; printf("%d\n",*(p+2)); }

A、1

B、2

C、3

D、4

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

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

简答题官方微信公众号

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

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

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