根据上述法则,常值的资料型别会经过进一步的强制型转。
The data type of the literal may undergo further coercion according to the rules described above.
这与缩小强制型转有所不同,缩小强制型转可能会遗失资料。
This is distinguished from a narrowing coercion, which may lose data.
如果一个运算元较长,则强制型转其运算元的型别和较长的运算元长度一致。
If one operand is longer, then the type to which the operand is coerced has the same length as the longer operand.
如果运算元都是不带正负号的,则强制型转其运算元的型别也是不带正负号的。
If either operand is unsigned, then the type to which the operand is coerced is unsigned.
如果运算元都是不带正负号的,则强制型转其运算元的型别也是不带正负号的。
If either operand is unsigned, then the type to which the operand is coerced is unsigned.
应用推荐