Ch. 3.3: When You Mix Apples and Oranges: Type Conversion Flashcards
1
Q
What is type coercion?
A
When working with an operator, it strives to convert the operands to the same type.
2
Q
What is a promotion?
A
When a value is converted to a higher data type.
3
Q
What is a demotion?
A
To convert a value to a lower data type.