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

You might also like to view...

What was the early standard Linux file system?

a. NTFS b. Ext3 c. HFS+ d. Ext2

Computer Science & Information Technology

In the context of Microsoft Access 2016, what is a form??

What will be an ideal response?

Computer Science & Information Technology