How can I prompt the user to enter two strings then concatenates the two strings and use the malloc() function to allocate enough memory to hold the two strings after they have been concatenated.
Then return a pointer to this new string.
For example, if I pass "hello " and "world!", the function returns a pointer to "Hello world!".
Then return a pointer to this new string.
For example, if I pass "hello " and "world!", the function returns a pointer to "Hello world!".