Jump to content

Address of a variable: Difference between revisions

m
→‎{{header|Ada}}: added code highlighting
m (Added to <10 category, corrected spelling)
m (→‎{{header|Ada}}: added code highlighting)
Line 5:
=={{header|Ada}}==
===Get The Address===
<ada> The_Address : System.Address;
I : Integer;
The_Address := I'Address;</ada>
===Set The Address===
Set the address of a variable to address A100 in hexadecimal
<ada>I : Integer;
for I'Address use 16#A100#;</ada>
Set the address of one variable to the address of another variable, creating an overlay.
<ada>I : Integer;
J : Integer;
For I'Address use J'Address;</ada>
 
=={{header|C sharp|C #}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.