This note covers the following topics:
Pointers in C, Pointers as Arguments, Passing Pointers to a Function, Code Using
Pointers, Null Pointer, Syntax for Pointer Operators, C Code for IntDivide,
Arrays , Array as a Local Variable, Passing Arrays as Arguments, I/O with
Strings, Arrays, Pointers and Pointer Arithmetics.
Author(s): Don
Fussell, University of Texas at Austin
This document explains how pointers and memory work and how to use them
from the basic concepts through all the major programming techniques. For each
topic there is a combination of discussion, sample C code, and drawings.
This document is intended to introduce pointers to beginning programmers
in the C programming language. Topics covered includes: What is a pointer, Pointer types
and Arrays, Pointers and Strings, Pointers and Structures, Arrays of Strings,
Multi-Dimensional Arrays, Pointers to Arrays, Pointers and Dynamic Allocation of
Memory and Pointers to Functions.