3 ms·
> Except, of course, -0 doesn't exist. Not for integers on modern hardware. If only hardware used ones’ complement (https://en.wikipedia.org/wiki/Ones'_complem
by Someone 2y ago
> Except, of course, -0 doesn't exist.
Not for integers on modern hardware. If only hardware used ones’ complement (https://en.wikipedia.org/wiki/Ones'_complement)… https://en.wikipedia.org/wiki/Ones'_complement)… ;-)
Meanwhile, the workaround is to use -1 through -5 to index from the end of the array.
- kragen 2y agoThat makes sense; in the diagram of the 4-element array, 3 points at the same point as -1.
- deleted 2y ago[deleted]