Advertise with us

What is dynamic_cast in c ?

Hi Expert,

What is dynamic_cast in c++?

Thanks in advance.
Last updated:6/14/2013 1:50:44 AM

1 Answers

AVADHESH PATEL
AVADHESH PATEL

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)

Last updated:6/14/2013 1:50:44 AM

Answer