News for hackers. Stuff that matters.
Re:Why do arrays start at 0? by iopq on Thursday August 25, 2022 @02:27AM (#32590285)
No, it's the first element, if it's a 32 bit int it still occupies bytes

0..4

the second int occupies bytes

4..8

you can see the array up to the second int occupies the contiguous space 0..8 which 0..4*2 and it has TWO elements

There are no comments on this comment yet.