What is type conversion? What is meant by implicit and explicit type conversion?

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

137 Views
%d bloggers like this: