4 ms·
Those are not structure members. C provides no guarantees about the relative locations of separate variables.
by kps 9y ago
Those are not structure members. C provides no guarantees about the relative locations of separate variables.
- kevin_clever 9y agoSo, it's a compiler specific reordering?
- pjc50 9y agoYes. Probably specific to compiler options too. Only structure members have a defined order.
- sargun 9y agoAre there any guarantees about (re)use of stack addresses?
- sigjuice 9y agoNo. "Stack" is an implementation detail. I don't think the standard even mentions the word "stack" anywhere.