What Is Type Conversion?




What Is Type Conversion?

Type conversion is used for conversion purpose. This converts float type data into integer form and vice versa. We can mix the type of values in our arithmetic expressions char type will be treated as it. Otherwise where types of different size are involved, the result will usually be of the larger size, so a float and a double would produce a double result. Where integer and real types meet, the result will be a double.

Explicit type conversions, both value conversions and view conversions, are allowed between closely related types as defined below. This clause also defines rules for value and view conversions to a particular subtype of a type, both explicit ones and those implicit in other constructs.