I've got a slight problem with the final part of a program I've been working on. It uses one-dimensional arrays, sorts the results in order, processes and prints the average of the numbers in the array. The final part of the program is to find the median of the numbers in the array.
/* Function prototype: */
double med_dbl_arr(double array[], int n);
/* Function Call */
median=med_dbl_arr(sorted_list, n);
/* Passing the sorted list and number of elements in array */
/* Function Definition */
double med_dbl_arr(double array[], int n)
At this point, the sucker gets a little hazy. I'm lost at this point. Any ideas?
Colin