Question: programming in c addTo accepts a pointer dest to a string where you will write the concatenation of the two strings str1 and str2. ex:

programming in c 
addTo accepts a pointer dest to a string where you will write the concatenation of the two strings str1 and str2. ex: str_1 is "abc" and str_2 is "def", your programming should write the string "abcdef" into dest and return.

(addto.h included both string.h and stdio.h, so no need for include string.h and stdio.h)

 #include "addto.h" / Concatenate two strings and place the results in dest dest-The destination string for the result max-The max number of characters to write in dest str1-The 1st string str2-The 2nd string / void addTo(char *dest, size_t max, const char *str1, const char *str2) { }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!