I have written a program using loops that combines two strings into one using a loop. it works fine but the output line is corrupt for some reason. code and screenshot attached.
result[length] is after where you expect the last character you write into result to go, so that's clearly wrong. second[length] is off the end of second.
Fixed that issue by substracting strlen from j, thanks! but I'm still getting this corrupt output.
Now only one of these signs appear between the strings...