```
void transpose_matrices(int a[][2],int result[][2])
{
int i,j,temp;
for (i = 0; i < 2; i++)
{
for (j = i+1; j < 2; j++)
{
temp = a[i][j];
a[i][j] = a[j][i];
a[j][i] = temp;
}
}
}
```

it would be very helpful if someone guide with this transpose function.

i have done the above code. pls correct me.