Home Segments Index Top Previous Next

409: Mainline

A pointer is a chunk of memory that holds the address of an object. A pointer name identifies a chunk of memory containing the address of an object.

In general, the amount of memory consumed by a pointer is determined by the designers of your C++ compiler. I tested the programs in this book using an implementation in which all pointers consist of 4 bytes, enabling the addressing of 232 memory locations.

You need not know how much memory is consumed by a pointer, however, because the correct amount is determined by the C++ compiler.