//COPY 2D ARRAY TO ANOTHER 2D ARRAY for (int x=0 ; x < 50; x++) { for (int y=0 ; y < 50; y++) { b[x][y] = a[x][y]; } }