3 ms·
Indeed, and this is also consistent with C being closer to the metal than Pascal. At a hardware level, a typical implementation for array access was to have a b
by analog31 10y ago
Indeed, and this is also consistent with C being closer to the metal than Pascal. At a hardware level, a typical implementation for array access was to have a base pointer plus an index, where the base pointer points to the start of the array, and the index is the element number. I got used to zero based arrays thanks to assembly language, long before learning C.
I don't know if this is still the case -- my understanding of microprocessor architecture is about 30 years old.