what is cast operator?
Answers were Sorted based on User's Feedback
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 |
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 |
c++ is a purely oop concept?
Difference ways of Polymorphism?
What is class and example?
What is encapsulation with example?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
swapping program does not use third variable
What are constructors in oop?
What are objects in oop?
can we create and enter the data & hide files using programmes ?
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
What is a scope resolution operator?
what is new operator in c++