Implicit and Explicit Type Conversion.

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

Ans. 

  1. 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.
  2. 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.

 

Leave a Reply

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

%d bloggers like this: