#include <stdio.h>
int main()
{
char s[100]="skh fld 42t vsfd te36357 rgsfdJGDQ *^*&8762KJGDH";
int i,j,k,t,n;
for(n=0;s[n];n++);
for(i=0;i<n-1;i++)
{
k=i;
for(j=i+1;j<n;j++)
if(s[j]<s[k])k=j;
t=s[i]; s[i]=s[k]; s[k]=t;
}
printf("%s\n",s);
system("pause");
return 0;
}
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/0dd7912397dda144c91b5b0db4b7d0a20cf4867a?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)