
Arithmetic Operation Promotion Rules 1/2
Implicit conversion rules, applied in order, before any operation:
⊗: any arithmetic ( *, +, /, -, % ), comparison ( ==, !=, >, <, >=, <= ), and bitwise
operation ( %, &, |, ∧ ), except shift «
(A) Floating point promotion
floating_type ⊗ integer_type → floating_type
(B) Size promotion
small_type ⊗ large_type → large_type
(C) Sign promotion
signed_type ⊗ unsigned_type → unsigned_type
41/52