I cant seem to make this work i have an issue when i call the function into main, the data type of the array is NOT compatible...
I know I have to change the pointers or data type, but if i do, i don't get the right median number or the combination is incompatible.
Please help me out, I been trying this little piece of code for more than 3 hours.
#define maxarr 30
void show_median(double *, int counter);
int main ()
double arr[maxarr], value;
int counter, i;
printf("Please enter '-1' to stop entering values.\n");
printf("values entered are:\n\n");
printf("%.1lf ", arr[i]);
void show_median(double *arr, int counter)
printf("median is : %.1lf\n", median2);