works on Windows, not on Linux pls helpCode:#include<string.h> #include<stdio.h> int main() { int i,j,n; char s[51][100],ch1[200],ch2[200],temp[100]; while (scanf("%d",&n),n) { for (i=1;i<=n;i++) scanf("%s",&s[i]); for (i=1;i<n;i++) for (j=i+1;j<=n;j++) { strcpy(ch1,s[i]); strcpy(ch2,s[j]); strcat(ch1,s[j]); strcat(ch2,s[i]); if (strcmp(ch1,ch2)<0) {strcpy(temp,s[i]); strcpy(s[i],s[j]); strcpy(s[j],temp);} } for (i=1;i<=n;i++) printf("%s",s[i]); printf("\n"); } return 0; }