This Is a Certified Answer

Certified answers contain reliable, trustworthy information vouched for by a hand-picked team of experts. Brainly has millions of high quality answers, all of them carefully moderated by our most trusted community members, but certified answers are the finest of the finest.
Here is the program
Program for sorting of string in c language
#include<stdio.h> int main(){   int i,j,n;   char str[20][20],temp[20];   puts("Enter the no. of string to be sorted");   scanf("%d",&n);   for(i=0;i<=n;i++)       gets(str[i]);   for(i=0;i<=n;i++)       for(j=i+1;j<=n;j++){            if(strcmp(str[i],str[j])>0){                strcpy(temp,str[i]);               strcpy(str[i],str[j]);               strcpy(str[j],temp);            }       }   printf("The sorted string\n");   for(i=0;i<=n;i++)       puts(str[i]);   r

1 5 1