Jump to content

Pointer error

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ed Poor (talk | contribs) at 15:23, 17 November 2006 (programming stub - need help with copy-editing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A pointer error in a computer program is any mistake involving pointer variables. Common errors include confusing the value of the pointer

forgetting whether a varable contains the desired value, or a memory reference to the desired value.

You might want to do arithmetic on a variable, but accidentally do that operation on the pointer to the variable instead.