g*********s 发帖数: 1782 | 1 比如 (-1<(unsigned) 0),true or false? | t****t 发帖数: 6806 | 2 9 Many binary operators that expect operands of arithmetic or enumera-
tion type cause conversions and yield result types in a similar way.
The purpose is to yield a common type, which is also the type of the
result. This pattern is called the usual arithmetic conversions,
which are defined as follows:
--If either operand is of type long double, the other shall be con-
verted to long double.
--Otherwise, if either operand is double, the other shall be converted
【在 g*********s 的大作中提到】 : 比如 (-1<(unsigned) 0),true or false?
| g*********s 发帖数: 1782 | 3 您老从C++ standard里翻出来的?佩服佩服。
【在 t****t 的大作中提到】 : 9 Many binary operators that expect operands of arithmetic or enumera- : tion type cause conversions and yield result types in a similar way. : The purpose is to yield a common type, which is also the type of the : result. This pattern is called the usual arithmetic conversions, : which are defined as follows: : --If either operand is of type long double, the other shall be con- : verted to long double. : --Otherwise, if either operand is double, the other shall be converted :
|
|