Usual Arithmetic Conversions
The operands of a binary operator may have different arithmetic
types. In this case, the usual arithmetic
conversions
are implicitly performed to cast
their values in a common type. However, the usual arithmetic
conversions are not performed for the assignment operators, nor for
the logical operators && and
||.
If operands still have different types after integer promotion, they are converted to the type that appears highest in the hierarchy shown in Figure 1-4. The result of the operation also has this type.

When one complex floating type is converted to another, both the type of the real part and the type of the imaginary part are converted according to the rules applicable to the corresponding real floating types.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access