Get premium membership and access questions with answers, video lessons as well as revision papers.

In addition to the standard cast, C++ defines four casting operators.What are they and what are they for?

      

In addition to the standard cast, C++ defines four casting operators.What are they and what are they for?

  

Answers


Davis
-dynamic cast-performs a polymorphic cast
-reinterpret-converts one type of pointer into another.
-static cast-performs a normal cast
-const-cast;casts away const-ness.
Githiari answered the question on February 12, 2018 at 12:23


Next: Define the following terms: (i) Bible (ii) Septuagint (iii) Translation (iv) Apocrypha
Previous: Explain how dynamic-cast can sometimes be an alternative to typeid in C++ programming.

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions