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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a promotion?

A

When a value is converted to a higher data type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a demotion?

A

To convert a value to a lower data type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly