有以下程序:
#include <stdio.h>
#defin e N 4
void fun(int a[][N],int b[])
int i;
for(i=0;i<N;i++)b[i]=a[i][i];
main()
intx[][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