以下程序运行后的结果是( )
发布于 2022-03-03 13:50:13
以下程序程序运行后的结果是( )
#include <stdio.h> #define N 4 void fun(int a[][N], int *p) { int i for (i = 0 i < N i++) { if (i < 3) p[i] += a[i][i] - a[i][N - i - 2] else p[i] += a[i][i] - a[i][N - i] } } main() { int x[N][N] = {{3, 6, 2, 0}, {2, 8, 7, 9}, {5, 1, 7, 3}, {9, 5, 3, 7}}, y[N] = {3, 5, 8, 6}, i fun(x, y) for (i = 0 i < N i++) printf("%d ", y[i]) printf("\n") }
登录后免费查看答案
关注者
0
被浏览
26