• 2022-06-07
    读下列程序,写出程序的运行结果。#include <;stdio.h>;#include <;string.h>;int main(){char s1[101],s2[51];int len1,len2,i;printf("请输入字符串1:");gets(s1);printf("请输入字符串2:");gets(s2);len1=strlen(s1);len2=strlen(s2);for(i=0;i<;len2+1;i++)s1[len1+i]=s2[i];s1[len1+len2]= '\0';puts(s1);return 0;}输入:请输入字符串1:ABCDEF请输入字符串2:1234输出:[/i]