Saturday, January 7, 2017

Conversion

2 Type Conversion
  1. Implicit Conversion
  2. Explicit Conversion

Implicit Conversion

When we convert small size/range of data type into long range/size of data type is called implicit conversion

Example :





Explicit Conversion

When we convert  long range/size of data type  into  small size/range of data type is called Explicit conversion


In explicit conversion we lose the data.

Example :

1 comment: