Jump to content

Software pointer

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 198.208.251.23 (talk) at 22:41, 22 December 2005 (spelling correction). 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 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 initialization values.