Problem Statement - Reversing each column in a 2D Matrix
Write a function REVCOL (int P[][5], int N, int M) in C++to display the content of a two dimensional array, with each column content in reverse order.
Note: Array may contain any number of rows.
For example, if the content of array is as follows:
15 | 12 | 56 | 45 | 51 |
13 | 91 | 92 | 87 | 63 |
11 | 23 | 61 | 46 | 81 |
The function should display output as:
11 23 61 46 81 13 91 92 87 63 15 12 56 45 51
Solution
CSKC| Created: 5-Jan-2019 | Updated: 16-Feb-2019|CBSE12D-2015