Anonymous user
Address of a variable: Difference between revisions
m
Changed over to works with template
m (Spelling/grammar.) |
m (Changed over to works with template) |
||
Line 20:
'''Platform:''' [[.NET]]
▲'''Compiler:''' [[Visual C sharp|Visual C#]] 2005
=== Get the address ===
Note that void* is a "pure" address which doesn't carry the type information anymore. If you need the type information (e.g. to recover the variable itself in a type safe manner), use a pointer to the appropriate type instead; in this case int*.
Line 34 ⟶ 31:
=={{header|C}} / {{header|C++}}==
=== Get the address ===
Note that void* is a "pure" address which doesn't carry the type information anymore. If you need the type information (e.g. to recover the variable itself in a type safe manner), use a pointer to the appropriate type instead; in this case int*.
|