What is meant by implicit & explicit type conversion... explain with an example
Answers
Answer:
It means converting one data type into another. Converting smaller data type into a larger one is also called as type promotion. ... Implicit type conversion operates automatically when the compatible data type is found. Explicit type conversion requires a type casting operator.
Follow please
Answer:
Implicit conversion is the conversion in which a derived class is converted into a base class like int into a float type.
Example, the fractional part of the float value is dropped because integers cannot support fractional values ...
Explicit conversion converts the base class into the derived class.
Example, if we are converting a higher numeric value into a lower one. ... All the data after the decimal will be lost in the conversion
hope this helps