Re:Why do arrays start at 0?
by nwlieb on Wednesday August 24, 2022 @01:29PM
(#32582780)
Is `(x - 1)` not a runtime cost if `x` is a runtime variable?
[ Parent
| on HN ]
Re:Why do arrays start at 0?
by vikingerik on Wednesday August 24, 2022 @02:57PM
(#32584103)
Not on many instruction architectures - addressing modes often support adding/subtracting a constant.