K&R Exercises

Exercise 5-3: strcat with pointers

Write a pointer version of the function strcat that we showed in Chapter 2: strcat(s,t) copies the string t to the end of s.

The input is pairs of lines, at most 1000 characters each: s, then t, without their newlines. For each pair, print s after strcat(s,t) on a line of its own.

Test Cases

· space→ tab↵ newline

Submissions

No submissions yet