Transpose of Matrix in C

Here is the program for transpose of matrix in C.

We first read a matrix of size mxn and then find its transpose by just interchanging the rows and columns i.e. rows become columns and columns become rows.

Transpose of Matrix in C



How many rows?3
How many columns?3

Enter the matrix:
1 2 3
4 5 6
7 8 9

Transpose of given matrix:
1 4 7
2 5 8
3 6 9

Leave a Comment

Your email address will not be published. Required fields are marked *