Variable structure size -- ANSI ?
Will Crowder
willcr at bud.sos.ivy.isc.com
Thu Apr 18 05:48:25 AEST 1991
In article <1D6c12w164w at cellar.UUCP>, rogue at 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 at ivy.isc.com) | setting #2?"
INTERACTIVE Systems Corp. | -- Guinan
More information about the Comp.lang.c
mailing list