Saturday, June 09, 2007

Casting in C++

Type casting in c++ can be done in two ways , using the traditional explicit ( ) cast operator or the new cast operators in c++ . The new operators in C++ are

  1. static_cast <>
  2. const_cast <>
  3. dynamic_cast <>
  4. reinterpret_cast

No comments: