Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Which of the Standard C++ casts can be used to perform a
?safe? downcast:
a) reinterpret_cast
b) dynamic_cast
c) static_cast
d) const_cast

Answers were Sorted based on User's Feedback



Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) ..

Answer / guest

dynamic_cast

Is This Answer Correct ?    5 Yes 0 No

Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) ..

Answer / santosh mundhe

reinterpret_cast: Reinterpret_cast is only way to cast
between pointers and value type.

dynamic_cast:Dynamic_cast is used with pointers and
reference.It's purpose is - it provid valid object
conversion of requested class.

static_cast:Static_cast provides conversion from pointer to
related class not only from derived to base class.

const_cast:It manipulets constness of an object while
passing a const object to a function.

:-dynamic_cast performs a special checking during runtime.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are the rules about using an underscore in a c++ identifier?

0 Answers  


How are pointers type-cast?

0 Answers   iNautix,


Explain how we implement exception handling in c++?

0 Answers  


What is size of empty class object

5 Answers   CA,


which is the easy way to divide any integer by 2?

2 Answers   Persistent,


Can we run c program in turbo c++?

0 Answers  


Can you Mention some Application of C/C++?

0 Answers  


Why c++ is not a pure oop language?

0 Answers  


How do I use turbo c++?

0 Answers  


What is abstraction c++?

0 Answers  


Can you please explain the difference between overloading and overriding?

0 Answers  


What are advantages of using friend classes?

0 Answers  


Categories