Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!mcnc!rti!sas!bts From: bts@sas.UUCP (Brian T. Schellenberger) Newsgroups: comp.lang.c Subject: Re: Arrays of Unknown Length in Structures (and sizeof) Message-ID: <186@sas.UUCP> Date: Mon, 5-Oct-87 20:03:44 EDT Article-I.D.: sas.186 Posted: Mon Oct 5 20:03:44 1987 Date-Received: Thu, 8-Oct-87 07:18:29 EDT References: <243@mit-prep.ARPA> <1044@ius1.cs.cmu.edu> Organization: SAS Institute Inc.,Cary NC,25712 Lines: 14 Physical ordering in structures are, indeed, required to be in the same order as the fields are declared. Only *bit-fields* are not required to be in order. ANSI requires this, and massive amounts of code would break if it were broken; lots of code does things like: (char *)s->field2 - (char *)s->field1 -- --Brian. (Brian T. Schellenberger) ...!mcnc!rti!sas!bts DISCLAIMER: Whereas Brian Schellenberger (hereinafter "the party of the first