Jump to content

Software pointer

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 200.40.82.130 (talk) at 18:00, 13 October 2005. 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)

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 dinamic structures, such as lists, trees and graphs.

There is a constant value associated to pointer management, called a void o null pointer. A null pointer is a pointer that points nowhere, and it is usually a reference to an invalid memory address. Therefore, null pointers are usually used as inicialization values.