Address of a variable: Difference between revisions

Content added Content deleted
m (Automated syntax highlighting fixup (second round - minor fixes))
No edit summary
Line 454: Line 454:


With BBC BASIC on other platforms the address of a variable can be found by calling a short piece of machine code, see [http://beebwiki.mdfs.net/Address_of_a_variable BeebWiki].
With BBC BASIC on other platforms the address of a variable can be found by calling a short piece of machine code, see [http://beebwiki.mdfs.net/Address_of_a_variable BeebWiki].

=={{header|Beef}}==
<syntaxhighlight lang="csharp">
int i = 5;
int* p = &i;
</syntaxhighlight>

Set the address:
<syntaxhighlight lang="csharp">
int* p = (int*)((void*)0xDEADBEEF);
</syntaxhighlight>



=={{header|C}} / {{header|C++}}==
=={{header|C}} / {{header|C++}}==