CS106 - Lecture 1502/14/01
Outline
Pointers
What is a pointer?
Pointer Variables
Addresses and Numbers
The * and & Operators
The NULL Constant
The new and delete Operators
Examples
Heap
Defining New Types with typedef
Dangling Pointers
Variable Type Terminology
Dynamic Arrays
Motivation
Array Variables and Pointer Variables
Example
Creating and Using Dynamic Arrays
Pointer Arithmetic
Email: tufo@mcs.anl.gov
Home Page: www.mcs.anl.gov/~tufo