Structure of C++ Flashcards
is the process of converting
one predefined type into another.
Type Conversion
Two types of Conversion
Implicit type Conversion
Explicit type Conversion
is also known as
automatic type conversion
Implicit type Conversion
It is a conversion
performed by the compiler without the
programmer’s intervention.
Implicit Type Conversion
It is applied
generally whenever differing data types are
intermixed in an expression, so as not to lose
information.
Implicit Type Conversion
Conversion from one data type to another is
prone to data loss.
Data Loss During Conversion
The explicit conversion of an operand to a
specific type is called
Type Casting
is user-defined that forces an
expression to be of specific data type.
Explicit Type Conversion
This happens when data
of a larger type is converted to data of a
smaller type.
Data Loss During Conversion