string concatenation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

string concatenation

how do i concatenate two string together without using the library function?

15th Jan 2018, 8:47 AM
gk.
1 Answer
0
you can create a new string with the length equals the sum of the length of the strings and for each one you copy then into the new string using a loop if you dont want to use length too just loop until you find '\0'
15th Jan 2018, 9:50 AM
capsloth
capsloth - avatar