Problem2188--Reverse the array

2188: Reverse the array

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

Assume you have a swap routine in place for doubles. Write a routine calls swap that reverses the entries in an array of doubles. Use this function declaration. void reverse( double a, int size); Carry out your reversal in place, do not make a local copy of the array.

Input

Given a double array

Output

Reverse the array

Sample Input Copy

0 1 2 3 4 5 60 7

Sample Output Copy

7 60 5 4 3 2 1 0 

Source/Category

16