3 ms·
In both C and C++ fields in structs must be outputted in the order they are listed. There is in C++ a freedom to rearrange fields whenever the user switches be
by CJefferson 12y ago
In both C and C++ fields in structs must be outputted in the order they are listed.
There is in C++ a freedom to rearrange fields whenever the user switches between public/private/protected, but I believe no compiler takes advantage of it, because (I believe) it is believed too suprising for these kinds of changes to change a class' size.