making a 2-d array

i have to write a function called transpose that accepts a two-dimensional array of doubles named matrix and an integer named size. the matrix is assumed to be "square" such that size is the number of rows as well as the number of columns (columns=rows). for each element, the function determines which other element corresponds to the first when mirrored about the diagonal axis(from top-left to bottom right). be careful to ensure that elements are only transposed once not twice. the function returns nothing(void).

I have never done a 2-d array before so can someone help me with this
Topic archived. No new replies allowed.