Transpose of a Matrix in C Program is explained here in this tutorial with output.
Read this post on computersciencejunction.in