Jump to content

Software pointer

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Beland (talk | contribs) at 21:09, 4 March 2006 ({{mergeto|Pointer}}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Generic name of a variable which value represents a memory address, and can be used to refer to other variables and structures.

Pointer manipulation is supported in most computer languages, altought newer languages often encapsulate their usage (i.e. objects are pointers with some restrictions concerning the architecture).

The use of pointers is a powerful tool to create and mantain dynamic structures, such as lists, trees and graphs.

There is a constant value associated to pointer management, called a null pointer. A null pointer is a pointer that points to a memory location which remains unused (usually address Zero - hence 'null'). An attempt to de-reference a null pointer is obviously an error, therefore, null pointers are used as initialization values.