oh but mostly pleaseee......first things first
say i have a o/e sort function.
and I want a split function that splits my array, and sends both halves to the o/e function. How do i do this?
I only have:
Code:
void split_array(int array[], int n)
{
/* Cuts the array in half */
int* array2;
int i;
int j;
int split;
split = n/2; /* integer division truncates */
for (i = 0; i < split; i++) {
array2[i] = array[i];
}
Odd_even_sort(array2, split);
Print_list( array2, n, "After sort" );
}
which gets the first half.
sorry keep posting, but trying to be clearer.