I'm currently having a problem with a program that is supposed to create the transpose of a 2-dimensional matrix.
I have successfully assigned values to the first array, but I cannot get the values to assign to the second array.
This is the piece of code that seems to be giving the problem:
It only prints one value, and it is not the value from the other array, any help would be greatly appreciated! Just let me know if you need to see the rest of the code.Code:for (l=0; l<3; ++l); { for(m=0; m<4; ++m); { arrayB[m][l]=arrayA[l][m]; printf("[%d]", arrayB[m][l]); } printf("\n");