4 ms·
Can anyone explain the one on cups? http://thecodelesscode.com/case/30 http://thecodelesscode.com/case/30
by tiglionabbit 14y ago
Can anyone explain the one on cups?
http://thecodelesscode.com/case/30 http://thecodelesscode.com/case/30
- grncdr 14y agooverflow
- egiboy 14y agohttp://en.wikipedia.org/wiki/Two%27s_complement http://en.wikipedia.org/wiki/Two%27s_complement
- tiglionabbit 14y agoAh. I was confused because of this: "the index — a one-byte integer — could never exceed 255 by definition." If it can hold the value 255, it couldn't be a signed integer, so there would be no room for negative numbers. Though I suppose this must have been their mistake.