CSC 161 Schedule Readings Labs & Projects Homework Deadlines Resources

Pointers and Memory Allocation

Introduction

So far you have been statically declaring variables so that the compiler allocates an appropriate amount of memory for the variables indicated in your program. In this section we learn that it is possible to allocate memory dynamically.

Textbook Reading

Begin with a reading from your textbook:

Examples

We may examine some of the following example programs in class.