WHAT IS STATIC_CAST IN C PLUS PLUS?

Royce Roy

Total Post:149

Points:1043
Posted by  Royce Roy
 1067  View(s)
Ratings:
Rate this:
Hi Expert,

What is static_cast in c++?

Thanks in advance. 
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: What is static_cast in C Plus Plus?

    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.

Answer

NEWSLETTER

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