編一程序,將兩個字符串鏈接起來,不要用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]
相關文章
相關標籤/搜索