CHAPTER 6

image

Applications with Strings and Text

In this chapter you’ll extend your knowledge of arrays by exploring how you use an array of characters to represent a string. You’ll frequently need to work with a text string as a single entity. C doesn’t provide a string data type. Instead, C uses an array of elements of type char to store a string. This chapter will show you how to create and work with variables that store strings and how the standard library functions greatly simplify string processing.

In this chapter you’ll learn:

  • How you create string variables
  • How to join two or more strings together to form a single string
  • How you compare ...

Get Beginning C, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.