3 ms·
> ...or one is a pointer to one past the end of one array object and the other is a pointer to the start of a different array object that happens to immediately
by Sharlin 8y ago
> ...or one is a pointer to one past the end of one array object and the other is a pointer to the start of a different array object that happens to immediately follow the first array object in the address space.
I was not aware of this special case. What's the rationale? Is there even a way in standard C to guarantee that two array objects are laid out in memory like that, with no padding?