Lesson 10. Working with Characters and Strings

A character is a single letter, numeral, punctuation mark, or other such symbol. A string is any sequence of characters. Strings are used to hold text data, which is composed of letters, numerals, punctuation marks, and other symbols. Clearly, characters and strings are extremely useful in many programming applications. In this lesson you learn:

Image How to use C’s char data type to hold single characters

Image How to create arrays of type char to hold multiple-character strings

How to initialize characters ...

Get C Programming in One Hour a Day, Sams Teach Yourself, 7th 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.