Difference between revisions of "Pointers"

From MidrangeWiki
Jump to: navigation, search
m (New page: 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_Point...)
 
(+Quick and dirty css table)
 
Line 1: Line 1:
 +
<div style="float:right;border:1px solid black;margin:5px;padding:5px;max-width:350px;">
 +
{|style="width:80%;table-layout:fixed;text-align:left;border:0px solid black;border-collapse:collapse;font-family:courier"
 +
|-yle="background-color:lightgrey;"
 +
!style="border:1px solid black;width:100px;"|Name
 +
!style="border:1px solid black;width:100px;"|Address
 +
!style="border:1px solid black;width:100px;"|Value
 +
|-
 +
|MyVariable
 +
|00 00 00 01
 +
|B&nbsp;&nbsp;Y&nbsp;&nbsp;E&nbsp;&nbsp;.
 +
|-
 +
|
 +
|00 00 00 05
 +
|H&nbsp;&nbsp;E&nbsp;&nbsp;L&nbsp;&nbsp;L
 +
|-
 +
|
 +
|00 00 00 09
 +
|0&nbsp;&nbsp;.&nbsp;&nbsp;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."
 +
</div>
 +
 
A pointer is a variable that holds a reference to space in memory.  That area of memory can contain anything.
 
A pointer is a variable that holds a reference to space in memory.  That area of memory can contain anything.
  

Latest revision as of 07:40, 25 February 2008

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.