Google
 
Webcprogramming.com




An Affiliate of AIHorizon




Reinterpret-cast Typecast

Reinterpret casts are only available in C++ and are the least safe form of cast, allowing the reinterpretation of the underlying bits of a value into another type. It should not be used to cast down a class hierarchy or to remove the const or volatile qualifiers.
reinterpret_cast<<type>>( <val> );
To cast an integer to a pointer, you might write
reinterpret_cast<int *>(100);

-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.

Geodesy Designs