Thank you for your time again. I'll look up qsort().Now that is how my code looks like after I did as you said.
int main ()
a = malloc ( size* sizeof *a );
if(strcoll(a[j], a[j+1]) >0 )
char *temp = a[j];
*a[j] = a[j+1];
*a[j+1] = temp;
lines I had a "incompatible types in assignment" error so I add the "*"'s.There are two problems.
a[j] = a[j+1];
a[j+1] = temp;
First, now it doesnt sort. It just changes the first letter of each word with a weird character. And second, my first problem continues. The size... It still counts more than there is.Do you see anything wrong with this part: