O'Reilly logo

Absolute Beginner’s Guide to C, 2nd Edition by Greg Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6. Can C Store Words?

In Character Arrays

image

Although C doesn’t have string variables, there is a way to store string data. This chapter explains how. You already know that string data must be enclosed in quotation marks. Even a single character enclosed in quotation marks is a string. You also know how to print strings with printf().

The only task left is to see how to use a special type of character variable to hold string data so that your program can input, process, and output that string data.

“I Am ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required