Is it a multiple choice answer? if so would like to see the answers as there are TONS of effective ways and if i list one it may not be in that list you have if its multiple choice.
Answer:
#include<iostream>
#include<iomanip>
using namespacestd;
int main ()
{
int x1[3][3]={1,2,3,4,5,6,7,8,9};
int x2[3][3];
int i,j;
for(i=0;i<3;i++)
for(j=0;j<3;j++)
x2[i][j] = x1[i][j];
cout<<"copy from x1 to x2 , x2 is :";
for(i=0;i<3;i++)
for(j=0;j<3;j++)
cout<<x2[i][j]<<" ";
cout<<endl;
system("pause");
return 0;
}
/* Sample output
copy from x1 to x2 , x2 is :1 2 3 4 5 6 7 8 9
Press any key to continue . . .
*/
Explanation:
The answer to this question is A