Dr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow
Lab Exercise
43. Using Dynamic Memory Allocation, Write a program to find the transpose of given matrix.
Sample Input and Output
Stdin Inputs:
3 2 1 2 3 4 5 6
Sample Result:
Input number of rows: 3
Input number of columns: 2
Input 1, 1 element: 1
Input 1, 2 element: 2
Input 2, 1 element: 3
Input 2, 2 element: 4
Input 3, 1 element: 5
Input 3, 2 element: 6
Matrix
1 2
3 4
5 6
Transpose Matrix
1 3 5
2 4 6