Skip to Main Content
Introduction to Computational Modeling Using C and Open-Source Tools
book

Introduction to Computational Modeling Using C and Open-Source Tools

by Jose M. Garrido
November 2013
Intermediate to advanced content levelIntermediate to advanced
461 pages
12h 1m
English
CRC Press
Content preview from Introduction to Computational Modeling Using C and Open-Source Tools
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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal

Publisher Resources

ISBN: 9781482216783