write a C++ function called myfunction that takes three parameters as shown in the following prototype:-
void myfunction(int a[],int size,int n);
where the first parameter is an integer array and the second parameter is the size of the array and the third parameter means that your function will sort the first n elements of the array in ascending order and the rest of the elements in descending order.
VulpesPosted Apr 19, 2013, 6:33 AM
The output should be:
0 1 2 3 4 9 8 7 6 5