Use C language to do it, plz
Posted: Fri Apr 29, 2022 6:55 am
Use C language to do it, plz
Write a function char* stringCombine (char *dest, char *src) a to add the string stored in src to the end of dest. The function strcat is NOT allowed to use. string.h CANNOT be included. You may assume that dest always has enough space to include src. The main function is as follows: int main() { char str1[20], str2 [20]; scanf("%s%s", stri, str2); stringCombine (str2, stri); printf("%s\n", str2); return 0; }
Write a function char* stringCombine (char *dest, char *src) a to add the string stored in src to the end of dest. The function strcat is NOT allowed to use. string.h CANNOT be included. You may assume that dest always has enough space to include src. The main function is as follows: int main() { char str1[20], str2 [20]; scanf("%s%s", stri, str2); stringCombine (str2, stri); printf("%s\n", str2); return 0; }