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
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();
}
{
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
English,
7 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Physics,
1 year ago
English,
1 year ago