DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
No More Array Errors (Part I) - Block(3C++)

No More Array Errors (Part I) - Block(3C++)

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?

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004