Integral Promotions

Certain fundamental types can be used wherever an integer can be used. The fundamental types that can be converted through integral promotion are:

If the value cannot be represented by an int, the value is converted to an unsigned int. For example, if a long can represent all the values, the value is converted to a long.

Note: Integral promotions are not performed on long long integers.



Standard Type Conversions
Arithmetic Conversions


Arithmetic Conversions
Arithmetic Conversions for extended Level C