CONTENTS
Preface = x
Chapter 1 Defining the Pointer = 1
Visualizing Pointers = 5
Summary = 8
Chapter 2 A Second Step to Learning Pointers = 11
C++ Strings and Char Arrays = 11
Array Bounds Checking = 18
Houses, Rooms, and Addresses = 20
Summary = 22
Chapter 3 Declared Pointers = 23
A Practial Use of Pointers = 28
Other Numeric Pointer Types = 33
Summary = 35
Chapter 4 Char Pointers and Arrays = 37
Arrays of Pointers = 54
Summary = 56
Chapter 5 Memory Access via Pointers = 59
Memory Models = 61
Poke Operations = 62
Peek Operations = 68
Far Pointers = 69
Summary = 76
Chapter 6 Pointers and Memory Allocation = 77
Memory Allocation Functions = 78
A More Modem Method of Memory Allocation = 92
Summary = 98
Chapter 7 Pointers and C++ Functions = 99
Pointers to Functions = 111
Functions Returning Pointers = 113
Summary = 117
Chapter8 Pointer and Structs = 119
Comparing Structs and Arrays = 123
Summary = 132
Chapter 9 Pointera and Unions = 133
Unions and Memory Conservation = 137
Summary = 142
Chapter 10 Pointers and C++ Classes = 143
Classes and Structs = 144
Class Member Alignment = 147
Virtual Functions and Member Alignment = 150
Summary = 156
Chapter 11 Pointers to Pointers = 157
Declared Pointers no Pointers = 160
Summary = 163
Chapter 12 Source Code Format = 165
C++ Formatting Conventions = 170
C++ Names and Identifiers = 72
Summary = 173
Epilogue = 175
Index = 177