Almost every
C program contains an array, and almost every C programmer
has made his or her share
of programming errors involving arrays.
Off-by-one errors and out-of-bounds indexing
errors are painfully familiar examples;
these cannot be avoided as long as programmers
are unwilling to pay the price of runtime bounds checking.
Algorithmic errors, another
major class, are discussed in Part II of this tutorial.
Among the easiest-to-make
and most-difficult-to-find array errors, however, are array
reallocation errors.
Next topic:
What is array reallocation?