Q28. What is meant by implicit and explicit type conversion?
- Implicit Type Conversion: An implicit type conversion is a conversion performed by the compiler without programmer’s intervention. An implicit conversion is applied generally whenever differing data types are intermixed in an expression (mixed mode expression), so as not to lose information.
- Explicit Type Conversion: An explicit type conversion is user-defined that forces an expression to be of specific type. The explicit conversion of an operand to a specific type is called Type Casting.