Address of a variable: Difference between revisions
m
→{{header|Sidef}}: fixed the example
(→{{header|Rust}}: Added pointer option for formatting.) |
m (→{{header|Sidef}}: fixed the example) |
||
Line 1,055:
=={{header|Sidef}}==
<lang ruby>var n = 42;
say Sys.refaddr(\n); # prints the address of the variable
▲var x = n; # "x" will point at the same object at which "n" points to
{{out}}
<pre>
42823224
37867184
</pre>
|