3 ms·
I don't particularly like negative indexing, but if we assume that -0 represents the address of the first element past the end of the array (the logical "end" o
by kibwen 2y ago
I don't particularly like negative indexing, but if we assume that -0 represents the address of the first element past the end of the array (the logical "end" of the array's span in memory), then -1 is naturally the starting address of the last element in the array, as measured in its offset from the end.