Documentation Home
>
Sun WorkShop Compiler C 5.0 User's Guide
>
Appendix B Implementation-Defined Behavior
>
Implementation Compared to the ANSI/ISO StandardT
>
Integers(G.3.5)
> (6.3.5)The sign of the remainder on integer division:
Sun WorkShop Compiler C 5.0 User's Guide
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:
The result is the same sign as the dividend; thus, the remainder of -23/4 is -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