CS106 - Lecture 15 02/14/01

2/19/2001


Click here to start


Table of Contents

CS106 - Lecture 15 02/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

Example

Pointer Arithmetic

Example

Author: Henry Tufo

Email: tufo@mcs.anl.gov

Home Page: www.mcs.anl.gov/~tufo