版本2和3间的区别
于2007-07-19 07:34:50修订的的版本2
大小: 697
编辑: czk
备注:
于2008-02-23 15:34:13修订的的版本3
大小: 697
编辑: localhost
备注: converted to 1.6 markup
未发现区别!

A.6.2 Integral Conversions

Any integer is converted to a given unsigned type by finding the smallest non-negative value that is congruent to that integer, modulo one more than the largest value that can be represented in the unsigned type. In a two's complement representation, this is equivalent to left-truncation if the bit pattern of the unsigned type is narrower, and to zero-filling unsigned values and sign-extending signed values if the unsigned type is wider.

When any integer is converted to a signed type, the value is unchanged if it can be represented in the new type and is implementation-defined otherwise.

TCPL/A.06.2_Integral_Conversions (2008-02-23 15:34:13由localhost编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.