Jump to content

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:'''{{works [[with|Visual C sharp|Visual C#]] 2005|2.0+}}
'''Language Version:''' 2.0+
 
'''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++}}==
'''Compiler:'''{{works [[with|gcc]],}}/ [[g++]]
=== 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*.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.