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 |
How to call a non virtual function in the derived class by using base class pointer
What are the access specifiers avaible in c++?
What is destructor give example?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is the difference between abstraction and polymorphism?
c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess
What is oops concept with example?
difference between static and non-static variables?
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
Templates mean
What is overriding in oops?
What is polymorphism what are the different types of polymorphism?