+ 1
Yes, you'd need to allocate memory for an array that has the size of the sum of the lengths of str1 and str2, then iterate through both arrays and place the chars at the corresponding places on the new array. Then, return the new bigger array.
29th Dec 2016, 3:55 AM
Leon Nascimento
Leon Nascimento - avatar