Pointers

From MidrangeWiki
Revision as of 12:40, 25 February 2008 by NJR ZA (talk | contribs) (+Quick and dirty css table)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Name Address Value
MyVariable 00 00 00 01 B  Y  E  .
00 00 00 05 H  E  L  L
00 00 00 09 0  .  00 00
MyPointer 00 00 00 0C 00 00 00 05

The valiable MyVariable above is 4 alpha characters and contains the value "BYE." The variable MyPointer above points to the memory at address 5 and that memory contains the value "HELLO."

A pointer is a variable that holds a reference to space in memory. That area of memory can contain anything.

Pointers can be used many languages ... RPG, COBOL, C, even CLP.

This article is a stub. You can help by editing it.