#include <stdio.h>
#include <stdlib.h>
main()
{
char a[30];
int i,j,n,temp;
printf("enter the limit: ");
scanf("%d",n);
printf("enter the string: ");
for(i=0;i<n;i++)
{
scanf("%s",a[i]);
}
for(i=0;i<n-1;i++)
{
for(j=i+1;j<n;j++)
{
if(strlen(a[i])>strlen(a[j]))
{
temp=a[j];
a[i]=a[j];
a[j]=a[i];
}
}
}
for(i=0;i<n;i++)
{
printf("%d",a[i]);
}
}
compiler stops working here when executing the program but 0 errors