Which code fragment below fills an M ? N matrix with the products of corresponding elements of M ? N matrices p and q?
a. m = p * q;
b. for ( int i = M; i < N; ++i )
m[i] = p[i] * q[i];
c. for ( int i = 0; i < M; ++i )
for ( int j = 0; j < N; ++j )
m[i][j] = p[i][j] * q[i][j];
d. for ( int i = 0; i < M; ++i )
for ( int j = i; j < N; ++j )
m[j][i] = p[j][i] * q[j][i];
c. for ( int i = 0; i < M; ++i )
for ( int j = 0; j < N; ++j )
m[i][j] = p[i][j] * q[i][j];
Computer Science & Information Technology