Implement the algorithm in C++. Algorithm: concatenate(s1, s2) 1. Initialize i =strlen(s1) 2. Initialize j =strlen(s2) 3. Initialize count=0; / * This segment copies characters of s2 into array s1 * /...


Implement the algorithm in C++.


Algorithm: concatenate(s1, s2)


1. Initialize i =strlen(s1)


2. Initialize j =strlen(s2)


3. Initialize count=0;


/ * This segment copies characters of s2 into array s1 * /


4. Repeat steps 5 to 7 while count <>


5. s1[i] =s2[count]


6. i =  i +1


7. count = count +1


8. Exit





Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here