void fun(int a[3][3], int b[3][3]) { int i, j; for(i = 0; i < 3; i++) for(j = 0; j < 3; j++) b[i][j] = a[i][j] + a[j][i]; }