i've got an assignment that requires me to copy an array into another array, then sort the original array and output both of them so that you can see the difference. I know how to copy 1-d arrays, but not 2-d. 1-d:

Code:
 void copyArray(double marks[][2], double marks2[][2], int numMarks)
{
	int i=0;
	for(i=0; i<(numMarks-1); i++)
	{
		marks[i][0] = marks2[i][0];
		marks[i][1] = marks2[i][1];
	}
}
this is my function, the arrays are marks[20][2] and marks2[20][2]. Marks2 is originally unpopulated. marks is populated with user input.

thanks in advance.