Home > DeveloperSection > Forums > What is static_cast in C Plus Plus?
Royce Roy
Royce Roy

Total Post:134

Points:938
Posted on    June-14-2013 6:49 AM

 Visual C++ Visual C++ 
Ratings:


 1 Reply(s)
 767  View(s)
Rate this:
Hi Expert,

What is static_cast in c++?

Thanks in advance. 


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-15-2013 5:30 AM

The static_cast operator performs a non -polymorphic cast.For example,it can be used to cast a base class pointerinto a derived class pointer.
It can also be used for any standerd conversion.o runtime checks are performed.

Don't want to miss updates? Please click the below button!

Follow MindStick