void arrSelectSort(int *[], int)
The first parameter is of type int**
.
You call the function like this:
arrSelectSort(arrPtr, 3);
where arrPtr
is of type int*
. This is the type mismatch that the compiler is informing your of.
I think that the error is in the declaration of arrSelectSort
. It should be:
void arrSelectSort(int[], int)
The first parameter is now of type int*
. This is exactly you need, a pointer to an array of int
.
You then have a load of other errors in the implementation of arrSelectSort
but I don't particularly want to attempt to debug them all.
You'll need to make minElem
be of type int
. And in a couple of other places you'll need to remove a level of indirection. For instance, this line:
if (*(array[index]) < *minElem)
should be:
if (array[index] < minElem)
and so on.