2 ms·
Indexes starting at 1 is good. Offsets starting at 0 is good. Confusing offsets for indexes leads to off-by-one errors. C's "array" notation is taught as being
by SAI_Peregrinus 6y ago
Indexes starting at 1 is good. Offsets starting at 0 is good. Confusing offsets for indexes leads to off-by-one errors. C's "array" notation is taught as being an index, when it's actually an offset.