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

what is difference between objects and function

1 Answers  


What is data binding?

4 Answers   Ittiam Systems,


What is overriding in oop?

0 Answers  


what is the 3 types of system development life cycle

0 Answers  


Definition of Object Oriented Programming in single line?

33 Answers   Impact Systems, Q3 Technologies, TCS,






Out of 4 concepts, which 3 C++ Follow?

1 Answers   TCS,


how to find no of instances of an object in .NET?

1 Answers   Infosys,


tell about copy constructor

3 Answers   Siemens,


What is methods in oop?

0 Answers  


What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?

1 Answers  


What is interface? When and where is it used?

0 Answers  


How is polymorphism achieved?

0 Answers  


Categories