[
next
] [
prev
] [
prev-tail
] [
tail
] [
up
]
1.1.5
Type conversions
Three kinds of type conversions:
Assign a value of one
arithmetic type
to a variable of another arithmetic type.
Combine mixed types in expressions
Pass arguments to function.
For basic data type(numeric ), There are promotion and conversion two situation:
There are two kinds of conversion, one is implicit, and the other is explicit.
1.1.5.1
Conversion on Initialization and assignment
1.1.5.2
Conversion in Expressions
1.1.5.3
Explicit conversion
1.1.5.4
Implicit conversion
[
next
] [
prev
] [
prev-tail
] [
front
] [
up
]