Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!rochester!kodak!ispd-newsserver!ism.isc.com!bud.sos.ivy.isc.com!willcr From: willcr@bud.sos.ivy.isc.com (Will Crowder) Newsgroups: comp.lang.c Subject: Re: Variable structure size -- ANSI ? Message-ID: <1991Apr17.194825.311@ism.isc.com> Date: 17 Apr 91 19:48:25 GMT References: <1991Apr12.234258.23800@ism.isc.com> <1D6c12w164w@cellar.UUCP> Sender: usenet@ism.isc.com (Ism Usenet News) Reply-To: willcr@ivy.isc.com Followup-To: comp.lang.c Organization: Interactive Systems Corp. Lines: 33 In article <1D6c12w164w@cellar.UUCP>, rogue@cellar.UUCP (Rogue Winter) writes: |> Just a quick follow-up question: while |> |> struct foo |> { short a; |> short b; |> } |> is guaranteed to produce &b > &a, will |> |> struct bar |> { short a,b; } |> also be guaranteed, or will the pointer order be compiler-dependent? struct bar { short a, b; }; is syntactically equivalent to struct bar { short a; short b; }; so yes, the behavior is the same. Will -------------------------------------------------------------------------------- Will Crowder, MTS | "That was setting #1. Anyone want to see (willcr@ivy.isc.com) | setting #2?" INTERACTIVE Systems Corp. | -- Guinan