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

试题28有以下程序#include <stdio.h>#define N 4void fun(int a[][N], int b[]){ int I;for(i=0; i<N; i++) b[i]=a[i][i]-a[i][N-1-i];}main(){ int x[N][N]={{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}},y[N], i;fun(x,y);for(i=0;i<N;i++) printf(“%d,”, y[i]); printf(“\n”);}程序运行后的输出结果是()

A.-12,-3,0,0,

B.-3,-1,1,3

C.0,1,2,3,

D..-3,-3,-3,-3

提问人:网友qzz111 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有4位网友选择 D,占比40%
  • · 有3位网友选择 A,占比30%
  • · 有3位网友选择 C,占比30%
匿名网友 选择了C
[241.***.***.84] 1天前
匿名网友 选择了A
[212.***.***.84] 1天前
匿名网友 选择了A
[33.***.***.250] 1天前
匿名网友 选择了D
[29.***.***.54] 1天前
匿名网友 选择了A
[17.***.***.43] 1天前
匿名网友 选择了C
[139.***.***.11] 1天前
匿名网友 选择了D
[66.***.***.192] 1天前
匿名网友 选择了C
[147.***.***.50] 1天前
匿名网友 选择了D
[201.***.***.216] 1天前
匿名网友 选择了D
[189.***.***.162] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“试题28有以下程序#include <stdio.h>#de…”相关的问题
第1题
以下程序的输出结果是_____。 #include <stdio.h> main() {int i=1; switch(i) { default: printf("%d",++i); case 0: printf("%d",i++); case 2: printf("%d",++i); } }

A、2

B、224

C、234

D、4

点击查看答案
第2题
以下程序输出的结果是( ). #include <stdio.h> int main() { int a=2,b=3,c=4; a*=16+b++-c; printf("%d\n",a); return 0; }
点击查看答案
第3题
以下程序运行后的输出结果是 #include <stdio.h> main() {int a[5]={1,2,3,4,5},b[5]={0,2,1,3,0},i,s=0; for(i=1;i<3;i++) s="s+a[b[i]];" printf(“%d”,s);}> A、6

B、10

C、11

D、5

点击查看答案
第4题
#include <stdio.h> main() { int a = 3; do { printf("%d,", a-=2 ); } while( ! (--a) ); printf("\n"); } 程序运行后的输出结果是 (难度系数★★★)

A、1,-2

B、0,-1

C、-2,1

D、0,0

点击查看答案
第5题
以下程序 #include <stdio.h> main() { int a = -2, b = 0; while (a++ && ++b) ; printf("%d,%d\n", a, b ); } 程序运行后输出结果是 (难度系数★★)

A、1,2

B、-2,0

C、-1,1

D、0,0

点击查看答案
第6题
下面程序的运行结果是_______。 #include <stdio.h> int main( ) { int a=1, b=10 ; do { b -= a ; a++ ; }while( b-- < 0 ) ; printf( "a=%d,b=%d\n" , a , b ) ; return 0; }

A、a=3, b=11

B、a=2, b=8

C、a=1, b=-1

D、a=4,b=9

点击查看答案
第7题
下面程序的运算结果为( ) #include <stdio.h> void swap(int *px, int *py); void swap(int *px, int *py) { int t; t=*px; *px=*py; *py=t; } void main() { int a=3,b=5; swap(&a,&b); print(“%d,%d\n”,a, b); }

A、3,5

B、3,3

C、5,3

D、5,5

点击查看答案
第8题
有以下程序 #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

点击查看答案
第9题
有以下程序   #include(stdio.h>   main()   {int a=l;b=2;   for(;a<8;a++) {b+="a;a+=2;}"   printf("%d,%d\n",a,b);   }> A、9,18

B、8,11

C、7,11

D、10,14

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

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

简答题官方微信公众号

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

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

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