void max_min(int *a, int size, int *max, int *min){
insertion_sort(a, size);
*min = a[0];
*max = a[size-1];
}
This C function works fine. I just get confused, when use the parameter,
- you need to use *min to use the the pass-in parameter as a value in
some address.
- But when you treat *a as an array, you don't need
to add the asterisk before that variable.
Why?