int array1[4], array2[4] = {3, 6, 9, 12};
array1 = array2;
and this one:
void showValues (int nums [4][])
{
for (rows = 0; rows < 4; rows++)
for (cols = 0; cols < 5; cols++) // is this the line of error? cols is not declared for a size.
cout << nums[rows][cols];
}