Question: C++ language but I am learning how use C-string so use strncpy, strcat and strncat to do the following. I have test case below to
C++ language but I am learning how use C-string so use strncpy, strcat and strncat to do the following. I have test case below to test the program. Got stuck to find a *


8d. Write an algorithm that finds an asterisk in a line of text and replaces it with a verb. Assume the variable below so that line2 ends up with I love cats!" in it. You will need to use strncpy and strcat and strncat. Implement the code and test it. char line1"I cats!"; char line2[25]; char verb[]-"love"' Use the provided tests and turn the completed form in to your instructor. *
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
