C Program to Sort the list of Strings


C Program for sorting the list of names

Write a C program which will accept multiple strings fron the user and will sort them in ascending order.

Output :

Explanation :

We are checking each successive strings using strcmp() function.

If string is greater than the successive string then we are swapping the strings.