[
next
] [
prev
] [
prev-tail
] [
tail
] [
up
]
1.1.5
numerical 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 two possibilities: promotion and conversion
There are two kinds of conversion, one is
implicit
, and the other is
explicit
.
1.1.5.1
Numerical Conversion
1.1.5.2
Explicit numerical conversion
[
next
] [
prev
] [
prev-tail
] [
front
] [
up
]