编一程序,将两个字符串链接起来,不要用strcat函数。C语言

char a[70]=“Hello Sam, Come here,”, b[70]=“world is beautiful.”;web int i; printf("%d\n",strlen(a)); printf("%d\n",strlen(b)); //遍历数组a和b并赋值 for (i = strlen(a)+1; i < 70; i++){ a[i]= b[i-strlen(a)-1]
相关文章
相关标签/搜索