Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
concatenation?
1) allocate memory for a new string of length equal to the sum of the lengths of the first two strings (+ 1)
2) copy the first string to the beginning of the allocated memory
3) copy the second string immediately after the first string in the new buffer
4) do not forget the terminating zero at the end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question