Problem Statement - 03A
Write the definition of a function Reverse(int Arr[], int N) in C++, which should reverse the entire content of the array Arr having N elements, without using any other array.
Example: if the array Arr contains
13 | 10 | 15 | 20 | 5 |
Then the array should become
5 | 20 | 15 | 10 | 13 |
NOTE:
-The function should only rearrange the content of the array.
-The function should not copy the reversed content in another array.
-The function should not display the content of the array.
Solution
CSKC| Created: 8-Jan-2019 | Updated: 14-Jan-2019|CBSE12D-2017