C Programming MCQ

1:

The following program fragment

int x[5][5],  i, j;
for (i = 0; i < 5, ++i;)
for(j = 0; j < 5 ; j++)
x[ i ] [ j ] = x[ j ][ i ];

A.

transposes the given matrix x

B.

 makes the given matrix x, symmetric

C.

doesn't alter the matrix x

D.

none of the above

 

Answer : B

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.