3 ms·
> Don't use `&h[1]` to refer to the space after a structure. I'm pretty sure that's undefined behavior Not defending the code, but it isn't undefined. Pointe
by akira2501 10y ago
> Don't use `&h[1]` to refer to the space after a structure. I'm pretty sure that's undefined behavior
Not defending the code, but it isn't undefined. Pointers to "one past the last element of an array" are a special case and have specific/defined behavior in the standard.
- colanderman 10y agoYou are correct, and I was right to doubt my memory. Though my point about misalignment stands.