home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
- From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
- Newsgroups: comp.lang.c
- Subject: Re: Is this ANSI?
- Message-ID: <1992Nov23.222949.15305@klaava.Helsinki.FI>
- Date: 23 Nov 92 22:29:49 GMT
- References: <24262@alice.att.com> <By6HMs.I4r@unx.sas.com> <1992Nov23.180808.19157@ncsu.edu>
- Organization: University of Helsinki
- Lines: 11
-
- jlnance@eos.ncsu.edu (JAMES LEWIS NANCE) writes:
- >I asked my C mentor about this once, and he pointed out that the
- >compiler is free to store the members of the structure in any order.
-
- Not in C. Structure members have to appear in the same order as they
- are declared. This was so way back in 1978, in K&R-1 (p. 196). Any
- compiler that gets this wrong is seriously broken.
-
- --
- Lars.Wirzenius@helsinki.fi (finger wirzeniu@klaava.helsinki.fi)
- MS-DOS, you can't live with it, you can live without it.
-