Q32. What is type conversion? What is meant by implicit and explicit type conversion?
Ans. The process of converting one predefined type into another is called Type Conversion.
C++ facilitates the type conversion in two forms:
- Implicit Type Conversion
An implicit type conversion is a conversion performed by the compiler without programmer’s intervention.
- Explicit Type Conversion
The explicit type conversion is user-defined that forces an expression to be specific type.