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