void fun(int tt[M][N], int pp[N]){ int maxv, i, j; for (i = 0; i < N; ++i){ maxv = tt[0][i] for (j = 1; j < M; ++j){ if (maxv < tt[i][j]){ maxv = tt[i][j]; } } pp[i] = maxv; }}