You are here

Overview

5 February, 2015 - 11:20

Changing a data type of a value is referred to as "type conversion". There are two ways to do this:

  1. Implicit the change is implied
  2. Explicit the change is explicitly done with the cast operator

The value being changed may be:

  1. Promotion going from a smaller domain to a larger domain
  2. Demotion going from a larger domain to a smaller domain