Re:Why do arrays start at 0?
by vbezhenar on Wednesday August 24, 2022 @06:15PM
(#32586515)
At least x86_64 can put something like `ptr[index * 4 + 4]` in one instruction (assuming that variable values are in registers). Not completely sure about ARM.
Is that so? I wasn't aware of that.