WHAT IS DYNAMIC_CAST IN C ?

Madam Walker

Total Post:22

Points:154
Posted by  Madam Walker
 1091  View(s)
Ratings:
Rate this:
Hi Expert,

What is dynamic_cast in c++?

Thanks in advance.
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: What is dynamic_cast in c ?

    Hi,


    Dynamic_cast is a casting operator. The dynamic_cast operator performs a run-time cast that verifies the validity of a cast. If at the time dynamic_cast is executed, the cast is invalid,the cast fails.the general form of dynamic cast is :

    dynamic_cast<target_type>(expr)

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!