Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- int const SIZE_1 = 4;
- int const SIZE_2 = 2;
- int main() {
- int arr[][SIZE_2] = {{1, 11}, {2, 22}, {3, 33}, {4, 44}};
- for (int i = 0; SIZE_2 > i; i++) {
- int temp = arr[2][i];
- arr[2][i] = arr[SIZE_2 - 2][i];
- arr[SIZE_1 - 2][i] = temp;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement