what is cast operator?

Answers were Sorted based on User's Feedback



what is cast operator?..

Answer / sathish, cognizant

Any unary expression is considered a cast expression.
The compiler treats cast-expression as type type-name after
a type cast has been made.
Casts can be used to convert objects of any scalar type to
or from any other scalar type.
Explicit type casts are constrained by the same rules that
determine the effects of implicit conversions.
Additional restraints on casts may result from the actual
sizes or representation of specific types.

Is This Answer Correct ?    6 Yes 1 No

what is cast operator?..

Answer / ramyagurrala

It provides a method for explicit conversion of the type of an object in a specific situation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

why destructor is not over loaded?

5 Answers  


what is difference between c++ language and java language

5 Answers  


what is the need of abstraction? what is abstraction?what is the abstraction for stack?

8 Answers   CTS, Verizon,


How is polymorphism achieved?

0 Answers  


How to calculate the age from the date of birth by using the program?

2 Answers   Accenture,






What is protected in oop?

0 Answers  


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

0 Answers   DELL,


How to hide the base class functionality in Inheritance?

0 Answers   Viscus Infotech,


what is difference between class template and template class?

0 Answers  


What is difference between oop and pop?

0 Answers  


What is an interface in oop?

0 Answers  


What is the difference between Home and $Home?

2 Answers   TCS,


Categories