Casting Data Type
In this chapter we will discuss converting primitive data into other data types.
Objectives¶
- Be able to convert operands to different data types.
- Understand and use the cast operator.
- Understand "promotion" in assignment and arithmetic.
- Understand truncation.
Topics¶
- Implicit Type Conversions
- Promotion of Data Types in Arithmetic
- Promotion in Integer Arithmetic
- The Cast Operator
- Casting Hints
- Labs