what is cast operator?

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


Please Help Members By Posting Answers For Below Questions

What is the main feature of oop?

624


what is the drawback of classical methods in oops?

2922


What is meant by multiple inheritance?

742


How many human genes are polymorphic?

577


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

2765






What is polymorphism oop?

624


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1151


What are the 3 principles of oop?

621


Why do while loop is used?

579


What are the components of marker interface?

606


officer say me - i am offered to a smoking , then what can you say

1586


What is oops in programming?

570


Why is polymorphism needed?

605


How to call a non virtual function in the derived class by using base class pointer

5281