Write a function that reverses all the element of an array.that is,the first element is exchanged with the last element; the second element is exchange with the second to the last element,and so on. the function prototye is: void reverse_array (double data[ ],int n); where data [ ] is the array and n is the size of the array. write a program to test your function.