Answer Posted / 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 |
Post New Answer View All Answers
What is multilevel inheritance in oop?
What is the difference between static polymorphism and dynamic polymorphism?
Can an interface inherit a class?
What is a superclass in oop?
Why do we use inheritance?
What does and I oop mean in text?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Which method cannot be overridden?
When not to use object oriented programming?
How long to learn object oriented programming?
What is interface? When and where is it used?
Why do we use class?
What is a class and object?
What causes polymorphism?
What exactly is polymorphism?