I've been trying to figure out how to reverse the elements in my array. But im drawing a blank. Any help would be greatly appreciated.
Code:#include <iostream> using namespace std; void reverse(int a[],int size );//prototype int main() { const int size=10; int a[size]={1,2,-3,-4,-5,-6,7,8,-9,10}; reverse(a,size);//call return 0; } void reverse(int a[], int size) //reverse order of elements in array { for(int i=0;size<i;i++){ cout<<a[i]; } }