Copying portions of arrays?
I am currently taking a C class, and I have been assigned to
- Prompt the user and accept a string of no more than 254 characters
- Prompt the user and accept a second string of no more than 254 characters
- Create a third string consisting of the first half of string (1) and the second half of string (2). Display this string
I know how to prompt for strings, but I'm having a little difficulty figuring out what tools I should use for this. I'm thinking that if I could get the length of the strings, I could divide the numbers in two, and I could use those numbers to create a loop and display the characters using < & >. However, I don't know how I would do this, or even if this is the correct method. Any help would be greatly appreciated.