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

5. How Do I Store Stuff?

Using Variables

image

No doubt you’ve heard that computers process data. Somehow, you’ve got to have a way to store that data. In C, as in most programming languages, you store data in variables. A variable is nothing more than a box in your computer’s memory that holds a number or a character. Chapter 2 explained the different types of data: characters, strings, integers, and floating-points. This chapter explains how to store those types of data inside your programs.

Kinds of Variables

There are several different ...

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