void sortWords(char wordList[][WORD_SIZE], int wordCounts[], int numWords)
{
int i, j;
int min, temp;
char *k;
for (i = 0; i < numWords-1; i++)
{
min = i;
for (j = i+1; j < numWords; j++)
{
if (strcmp(wordList[j], wordList[min]) < 0)
min = j;
}
k = wordList[i];
wordList[i] = wordList[min];
wordList[min] = k;
temp = wordCounts[i];
wordCounts[i] = wordCounts[min];
wordCounts[min] = temp;
}
}
I'm getting problems in lines 16-18 about variable types. Can someone tell me what I'm not getting? It looks especially silly now, I think, because I was messing with it to try to get it to work just now.