What is dynamic_cast in c ?

Total Post:22

Points:154

 1499  View(s)
Ratings:
Rate this:
Hi Expert,

What is dynamic_cast in c++?

Thanks in advance.
  1. 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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.