Documentation Home
>
Sun Studio 12: C User's Guide
>
Appendix E Implementation-Defined ISO/IEC C90 Behavior
>
E.1 Implementation Compared to the ISO Standard
>
E.1.5 Integers (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 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