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 this pointer in oop?

0 Answers  


Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


IN PROGRAMING LANGAUGE A C++ IS PURELY OBJECT ORIENTED OR NOT?

2 Answers  


What is destructor example?

0 Answers  


Why is oop better than procedural?

0 Answers  






who is the founder of c++?

15 Answers   Hexaware, ONGC,


Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.

6 Answers  


Name a typical usage of polymorphism

3 Answers  


create a c++ program that will accepts 9 inputs using 3 by 3 array.

1 Answers  


how to create thread in java?

17 Answers   IBM, Infosys, Wipro,


What is a friend function & its advantage?

2 Answers   TCS,


what is the application of oops?

8 Answers   IBM,


Categories