Optimal structure field ordering

Jim Blandy blandy at awamore.cs.cornell.edu
Tue Jun 28 02:43:25 AEST 1988


Sorry - should have done this the first time.

The ordering of members in a structure (excluding bit fields) is
also specified in the NEW K&R (v2), section A2.8 (Appendix A, the reference
manual).  Page 213, in my edition:

	"The members of a structure have addresses increasing in the
         order of their declarations."
--
Jim Blandy - blandy at crnlcs.bitnet
"insects were insects when man was just a burbling whatisit."  - archie



More information about the Comp.lang.c mailing list