A colleague told me that, in the following type, all members have unspecified ordering in memory (relative to one another).
I doubt this, because they all have the same access level.
Who is correct?
struct foo { public: int x; public: int y; public: int z; };
See Question&Answers more detail:os