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 object and class in oops?

0 Answers  


What is the use of unnamed namespaces in OOPS? The only advantage I know is that they dont need the scope resolution operator while accessing them. I want to know some other advantages of unnamed namespaces...

2 Answers  


What are the benefits of polymorphism?

0 Answers  


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

0 Answers  


Can main method override?

0 Answers  






i have to create a view in SQL as like in ORACLE DATA EXPRESS EDITION

2 Answers   CTS,


what are the different types of qualifier in java?

0 Answers   TCS,


What are the different forms of polymorphism??

8 Answers   Mantaq, NUC, PCS,


What is a class?

32 Answers   Infosys, TCS, Thylak,


Can we have a private constructor ?

12 Answers   HSBC, Ness Technologies, TCS, Wipro,


Definition of Object Oriented Programming in single line?

33 Answers   Impact Systems, Q3 Technologies, TCS,


What is the use of oops?

0 Answers  


Categories