3 ms·
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
by iopq 4y ago
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