i want to pass an array by reference from the main and then use the array again in the main function:
void reverseit(int[])
void main()
{
int array1[4]={1,2,3,4}
reverseit(array1); //i want that the result of the
cout<<"Reverse array is:"<<endl<<array1); function call should be displayed
in the cout follwing the call.//
}
what should be the function definition to reverse the array and cout it in the main.
thanx.