Given a matrix (2-D array) of elements, implement a logic to…
Given a matrix (2-D array) of elements, implement a logic to print the transpose of the matrix. Concentrate on your array logic, variables, and printf() statements. Assume the array is already declared and defined, and is of size SIZExSIZE. int array[][] = {{row of elements}, {row of elements}, … , {row of elements}}; Sample output: For example if array[][] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; The transpose of the matrix is: 1 4 7 2 5 8 3 6 9
Read Details