Professional Documents
Culture Documents
Note:
The re-arrangement is to be done in-place i.e you cannot use another array.
Assumption:
You may assume that the array is of even length.
Example:
Input:
2 4 6 8 20 15 10 5
Output:
5 10 15 20 8 6 4 2
*********************************************************************************
Program
*********************************************************************************
#include<stdio.h>
printf("\n");
}