
Available under Creative Commons-ShareAlike 4.0 International License.
Changing a data type of a value is referred to as "type conversion". There are two ways to do this:
- Implicit the change is implied
- Explicit the change is explicitly done with the cast operator
The value being changed may be:
- Promotion going from a smaller domain to a larger domain
- Demotion going from a larger domain to a smaller domain
- 1535 reads