C Program Sort N Strings in Ascending Order
C Program Sort N Strings in Ascending Order /* C program to input n strings and sort them in ascending order alphabetically */ #include <stdio.h> #include <string.h> int main() { char str[30][40],temp[30]; int n,i,j; printf(“\nString Sorting: Sorts N strings:\n”); printf(“************************************\n”); printf(“Input number of strings :”); scanf(“%d”,&n); getchar(); printf(“Input string %d :\n”,n); for(i=0;i<n;i++) gets(str[i]); /*Logic for… Read More »