
Chapter 11
Text Data
11.1 Introduction
In computational models, most of the data defined and manipulated is numeri-
cal in nature. This chapter presents text data also known as text strings. There is a
significant number of string operators and functions that manipulate strings.
11.2 C Strings
An individual text symbol is also known as a text character. In C, a text character
is of type char and a simple string is basically a sequence of text characters. A string
is implemented as a one-dimensional array with the last character being a special
character with value ‘\0’ to mark the end of the string.
FIGURE 11.1: A C string.
An individual text character