Write a C program to transpose a matrix without using second matrix