char *str1="abc";
char *str2="acd";
char *s="";
int i=0;
while(1)
{
if(*str1=='\0') {*s+=*str2;break;}
if(*str2=='\0') {*s+=*str1;break;}
*s+=*str1<*str2?*str1++:*str2++;
*s++; i++;
}
*s='\0';
s-=i;
char *str2="acd";
char *s="";
int i=0;
while(1)
{
if(*str1=='\0') {*s+=*str2;break;}
if(*str2=='\0') {*s+=*str1;break;}
*s+=*str1<*str2?*str1++:*str2++;
*s++; i++;
}
*s='\0';
s-=i;

土冒