O'Reilly logo

C Programming: Visual Quickstart Guide by Marc Liyanage, Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Working with Strings

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required