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

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

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?

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005