Transpose of a matrix

I am not able to find the mistake can u plzz help

its printing the same input array

i don’t want to use another array

@soul_coder hey nikhil run a nested loop
for(i=0;i<n;i++)
{
for(j=0;j<i;j++)
{
t=a[i][j];
a[i][j]=a[j][i];
a[j][i]=t;
}
}