VARPTR/de
From MCS Wiki AVR
< VARPTR(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = Retrieves the memory-address of a variable. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> ...") |
m (1 revision) |
Latest revision as of 21:16, 15 February 2013
Contents |
= (**COPIED FROM ENGLISH PAGE**) === Action
Retrieves the memory-address of a variable.
Syntax
var = VARPTR( var2 )
var = VARPTR( "var3" )
Remarks
Var |
The variable that receives the address of var2. |
Var2 |
A variable to retrieve the address from. |
var3 |
A constant |
Sometimes you need to know the address of a variable, for example when you like to peek at it's memory content.
The VARPTR() function assigns this address.
See also
NONE
Example
Dim W As Byte Print Hex(varptr(w)) ' 0060
Languages | English • Deutsch |
---|