0

//My function is but the problem is that i dont have a proper working main function

void reverse(int a[], int n) { // function: Reverses the elements of a. // parameters: // a inout array of values. // n in number of values in a, a[0]..a[n-1] // returns: nothing for (int i=0; i<n/2; i++) { int temp = a*; a = a[n-i-1]; a[n-i-1] = temp; } return;*