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:
- King: Review Chapter 11 and read Chapter 12, OR
- K&R: Review 5.1-5.2 and read 5.3-5.6.
Examples
We may examine some of the following example programs in class.
