答案:main(){Char *str120],*str220],*str320];Char swap();Printf("please input three strings\n");Scanf("%s",str1);Scanf("%s",str2);Scanf("%s",str3);If(strcmp(str1,str2)>0) swap(str1,str2);If(strcmp(str1,str3)>0) swap(str1,str3);If(strcmp(str2,str3)>0) swap(str2,str3);Printf("after being sorted\n");Printf("%s\n%s\n%s\n",str1,str2,str3);}Char swap(p1,p2)Char *p1,*p2;{Char *p20];Strcpy(p,p1);strcpy(p1,p2);strcpy(p2,p);}