Problem sorting an array of strings

This is a discussion on Problem sorting an array of strings within the C Programming forums, part of the General Programming Boards category; Hi!!
Can anybody tell me what wrong with this code, it is supposed to classify the strings alphabetically and display ...

What was that size_t...?? I just know the commonly used data types, we didn't cover typedef or structures if it is the case here!!
Probably not...And my question was what wrong with my code, copying that code below is not very instructive!!

What was that size_t...?? I just know the commonly used data types, we didn't cover typedef or structures if it is the case here!!
Probably not...And my question was what wrong with my code, copying that code below is not very instructive!!

I've added many comments for you to read in the sorting algorithm. size_t is a typedef of "unsigned int" and is defined in the standard c headers so you can just replace "size_t" with "unsigned int" if you want. No one is going to give you a better answer than a fully commented working sorting function. Just compare mine to yours.