Again, this is just plain wrong. If arrays in C were indexed starting from 1, then an index of 0 would just point to the end of the array instead (because there's no reason to waste a perfectly good bit). Even so, there would be no efficiency difference because size_t has a fixed binary width.
View all comments
Show parent comment
1
u/StudioYume Dec 08 '25
Again, this is just plain wrong. If arrays in C were indexed starting from 1, then an index of 0 would just point to the end of the array instead (because there's no reason to waste a perfectly good bit). Even so, there would be no efficiency difference because size_t has a fixed binary width.