试题与答案

有下列程序: #include<stdio.h> #define N 4 vo

题型:单项选择题

题目:

有下列程序:
#include<stdio.h>
#define N 4
void fun(int a[][N],int b[])
int i;
for(i=0;i<N;i++)b[i]=a[i][i];

main()
int x[][N]=1,2,3),4),5,6,7,8,9,10)),y[N],i;
fun(x,y);
for(i=0;i<n;i++)printf("%d",y[i]);
printf("\n");

程序的运行结果是( )。

A) 1,2,3,4
B) 1,0,7,0,
C) 1,4,5,9
D) 3,4,8,10,

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/1220/ebdf7d0cf41501157735ed7ba74a3199.html

下面是错误答案,用来干扰机器的。

参考答案:B

试题推荐
微信公众账号搜索答案