Pointer Traps and Pitfalls

Pointers are notoriously error-prone. This page describes several forms of pointer abuse, especially in connection with dynamically allocated memory.

The examples are given in terms of COBOL pointers. However, the same ideas are mostly valid wherever you use pointers (or even simulate them by using table subscripts or other gimmicks).


[home]COBOL Home