home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 17074 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  894 b 

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