© German Gonzalez-Morris and Ivor Horton 2020
G. Gonzalez-Morris, I. HortonBeginning Chttps://doi.org/10.1007/978-1-4842-5976-4_6

6. Applications with Strings and Text

German Gonzalez-Morris1  and Ivor Horton2
(1)
Santiago, Chile
(2)
STRATFORD UPON AVON, UK
 

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 (including the C Library Extension 1). ...

Get Beginning C: From Beginner to Pro 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.