Documentation Home
>
Sun Studio 12:C 用户指南
>
附录 E 实现定义的 ISO/IEC C90 行为
>
E.1 与 ISO 标准比较的实现
>
E.1.5 整数 (G.3.5)
>
E.1.5.1 (6.1.2.5) The representations and sets of values of the various types of integers(各种类型的整数的表示和值集):
> (6.3.5) The sign of the remainder on integer division(整数除法的余数的符号):
Sun Studio 12:C 用户指南
Previous
: (6.3) The results of bitwise operations on signed integers(带符号整型数的按位操作的结果):
Next
: (6.3.7) The result of a right shift of a negative-valued signed integral type(负值带符号整型的右移的结果):
(6.3.5) The sign of the remainder on integer division(整数除法的余数的符号):
结果的符号与被除数相同,因此,-23/4 的余数是 -3。
Previous
: (6.3) The results of bitwise operations on signed integers(带符号整型数的按位操作的结果):
Next
: (6.3.7) The result of a right shift of a negative-valued signed integral type(负值带符号整型的右移的结果):
© 2010, Oracle Corporation and/or its affiliates