Address of a variable: Difference between revisions
m
→{{header|Oberon-2}}: Added syntax highlighting
Deadmarshal (talk | contribs) m (→{{header|Oberon-2}}: Added syntax highlighting) |
|||
Line 1,356:
=={{header|Oberon-2}}==
===Get Address===
<syntaxhighlight lang="oberon2">
VAR a: LONGINT;
VAR b: INTEGER;
Line 1,362:
b := 10;
a := SYSTEM.ADR(b); (* Sets variable a to the address of variable b *)
</syntaxhighlight>
===Set Address===
<syntaxhighlight lang="oberon2">
SYSTEM.PUT(a, b); (* Sets the address of b to the address of a *)
</syntaxhighlight>
=={{header|OCaml}}==
|