Computer Science, asked by Sabershareef, 1 year ago

Write a function on C++,which accepts an integer array and its size as parameter and re arranges the array in reverse

Answers

Answered by WonderWoman7
0
void reverse (A[ ], size)
{
int max,temp;
A[0]=max;
for( int i=1;i<size;i++)
{
if (A[i]>max)
temp=A[¡];
A[¡]=max;
temp=A[¡];
}
getch();
}
Similar questions