On Mon, Sep 29, 2025 at 03:35:31PM -0400, Roy J. Tellason, Sr. wrote:
On Monday 29 September 2025 10:44:23 am Michael Stone wrote:That is, in an integer is implemented as an 8 bit value, such that when you add 1 to 256 it wraps around to 0.Uh, no. Eight bits can represent 256 different values, but since one of them is zero, the highest value that can be represented is 255, not 256. You add 1 to 255 and _that_ wraps around to zero...
There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors.