Q&A CBSE12A-2019-A03B-C2 #6997
Question:
Write definition for a function ColSwap(int A[4][4]) in C++, which swaps the contents of the first column with the contents of the third column.
For example:
| ORIGINAL ARRAY A | |||
| 10 | 15 | 20 | 25 |
| 30 | 35 | 40 | 45 |
| 50 | 55 | 60 | 65 |
| 70 | 75 | 80 | 85 |
| CHANGED ARRAY A | |||
| 20 | 15 | 10 | 25 |
| 40 | 35 | 30 | 45 |
| 60 | 55 | 50 | 65 |
| 80 | 75 | 70 | 85 |
NOTE:
- DO NOT DISPLAY the Changed Array contents.
- Do not use any other array to transfer the ontents of array A.
