I l@ve RuBoard Previous Section Next Section

15.4 The reinterpret_cast

The reinterpret_cast is used to tell C++ to interpret a value as a different type. It is used to convert pointers to integers, integers to pointers, and pointers from one type to another. The syntax is:

reintepret_cast<type>(expression)

where type is of the result of the conversion.

    I l@ve RuBoard Previous Section Next Section