O'Reilly logo

C Programming: Visual Quickstart Guide by Marc Liyanage, Larry Ullman

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

Understanding Program Memory

The chapter starts by looking at how the system stores (in the computer's memory) the data used by an application. Having a clear understanding of memory layout makes it easier to get started with pointers.

The point of any computer program is to process data. This data is stored in your computer's main memory. Every piece of data in memory has a unique address, defined in bytes. Some of the pieces have a name in addition to an address; those pieces are called variables, which is what you have been using so far.

Picture your computer's memory as a very long row of cells that store data, each with a unique address, and each 1 byte in size. The system assigns your variables to these memory cells, and every variable ...

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