If both expressions are of arithmetic or enumeration types, the usual arithmetic conversions (covered in arithmetic conversions) are performed to convert them to a common type.
如果两个表达式类型不相同,但是都是算术或者是枚举类型。那么算术转换将他们转换成共同类型。
As you probably suspect, the integer conversion rank is used to define the rules for expression evaluation. Those rules are named the integer promotions and the usual arithmetic conversions.
就如你可能猜想的那样,整数转换优先级用于定义表达式求值的规则。这些规则叫做整型提升和常用算术转换。
As you probably suspect, the integer conversion rank is used to define the rules for expression evaluation. Those rules are named the integer promotions and the usual arithmetic conversions.
就如你可能猜想的那样,整数转换优先级用于定义表达式求值的规则。这些规则叫做整型提升和常用算术转换。
应用推荐