stl function to reverse an array 1

stl function to reverse an array

reverse(ar , ar + n) ; //ar is the array , n is the size

Here is what the above code is Doing:
1. It is taking the array and the size of the array as input.
2. It is reversing the array.
3. It is printing the reversed array.

Similar Posts