Skip to Main Content
C Programming: Visual Quickstart Guide
book

C Programming: Visual Quickstart Guide

by Larry Ullman, Marc Liyanage
October 2004
Beginner content levelBeginner
408 pages
9h 24m
English
Peachpit Press
Content preview from C Programming: Visual Quickstart Guide

Another Look at Pointer Variables

While pointer variables have a special role, they too are just places in memory used to store a particular kind of data (in their case, the addresses of other pieces of data). Like ordinary variables, they have a size and a location in memory (Figure 9.7). And as with ordinary variables, you can use the address-of operator to find a pointer variable's address.

Figure 9.7. The value stored in a pointer variable (x and y) is the memory address of another variable (a and b).

Our next example shows you how these locations and sizes look on your machine. It makes use of the sizeof() function, ...

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

Intermediate C Programming

Intermediate C Programming

Yung-Hsiang Lu
Data Structures Using C

Data Structures Using C

Samir Kumar Bandyopadhyay, Kashi Nath Dey

Publisher Resources

ISBN: 0321287630Purchase book