A
alistair_happencross
In my copy of "Algorithms in C" by R. Sedgewick (3rd edition, January
1999 reprint), this is on pages 71-72:
"we think of a short int as an object that can take on values between
-32768 and 32767, instead of as a 16-bit object"
My understanding of C is that the negative number should be -32767. The
errata list on his website shows that it was -32767 and was changed to
-32768 for subsequent printings.
Which is correct?
1999 reprint), this is on pages 71-72:
"we think of a short int as an object that can take on values between
-32768 and 32767, instead of as a 16-bit object"
My understanding of C is that the negative number should be -32767. The
errata list on his website shows that it was -32767 and was changed to
-32768 for subsequent printings.
Which is correct?