I'm trying to implement a selection sort function for an array of user inputted string objects. Am I on the right path as far as arguments go. Thanks
void selectionSort(char ARRAY[], int size)
{
int startScan, minIndex, minValue;
for (startScan = 0; startScan < (size - 1); startScan++)
{
minIndex = startScan;
minValue = ARRAY[startScan];
for (int index = startScan + 1; index < size; index++)
{
if (ARRAY[index] < minValue)
{
minValue = ARRAY[index];
minIndex = index;
}
}
ARRAY[minIndex] = ARRAY[startScan];
ARRAY[startScan] = minValue;
}
}