static_cast and reinterpret_cast are conversion types :
static_cast can perform conversions betwenn pointers and related classes. The command goes as: static_cast<new_type>(expression) . An example is shown below:
result:
reinterpret_cast can convert between completely unrelated pointer types. See the example below:
result:
Check more information about type conversion from the link below.
Useful links:
http://blog.csdn.net/jofranks/article/details/7828331
http://www.cnblogs.com/ider/archive/2011/07/31/cpp_cast_operator_part4.html
http://www.cnblogs.com/ider/archive/2011/07/30/cpp_cast_operator_part3.html
http://blog.csdn.net/zhuichao001/article/details/7924148
http://blog.csdn.net/querw/article/details/7387594
http://blog.csdn.net/jofranks/article/details/7828339
http://www.cplusplus.com/doc/tutorial/typecasting/
to be continued...