home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13614 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.0 KB  |  30 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!ftpbox!motsrd!news
  3. From: shang@corp.mot.com (David (Lujun) Shang)
  4. Subject: Re: zero-length datatype
  5. Message-ID: <1992Sep14.134916.6400@cadsun.corp.mot.com>
  6. Sender: news@cadsun.corp.mot.com
  7. Reply-To: shang@corp.mot.com
  8. Organization: Motorola, Inc., Software Research and Development, Rolling Meadows, IL. 60008
  9. References: <23659@alice.att.com>
  10. Distribution: comp
  11. Date: Mon, 14 Sep 92 13:49:16 GMT
  12. Lines: 16
  13.  
  14. In article <23659@alice.att.com> ark@alice.att.com (Andrew Koenig) writes:
  15. > In article <1992Sep11.185505.17536@cadsun.corp.mot.com> shang@corp.mot.com  
  16. writes:
  17. > > That is why ISO C standard does not allow empty structure and zero 
  18. > > number of array.
  19. > No, ISO C does allow empty structures.  It just says that they must
  20. > occupy a non-zero amount of memory.
  21.  
  22. Sorry. The SUN C in my computer does not allow empty structure. I shouldn't
  23. assume that it conformed to standard C. But if structure must be non-zero-
  24. sized, empty structure is really useless in C.
  25.  
  26. David Shang
  27.