Chapter 10. String Data Types

image with no caption

After integers, character strings are probably the most common data type used in modern programs; they are also the second most commonly used composite data type (arrays are the most commonly used composite data type). A string is a sequence of objects. Most often, the term string describes a sequence of character values, but it’s quite possible to have strings of integers, real values, Boolean values, and so on. I’ve already discussed bit strings in this book and in Write Great Code, Volume 1. Nevertheless, in this section I’ll stick to the common use of the term string and use it to refer to character strings.

In general, ...

Get Write Great Code, Volume 2 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.