In Chapter 6, “Working with Arrays,” you learned how to use character arrays as strings. But with C you can also handle strings by using pointers. You saw one example of this at the end of the previous chapter.
In this chapter you'll first learn more about these two ways of creating strings (as arrays and as pointers). Then you'll begin working with the many string functions found in the string.h C library file. To understand and use these functions, you'll run through a series of exercises, some of which merely demonstrate a concept, and others that show real-world uses of the ideas.