home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!ftpbox!motsrd!news
- From: shang@corp.mot.com (David (Lujun) Shang)
- Subject: Re: zero-length datatype
- Message-ID: <1992Sep14.134916.6400@cadsun.corp.mot.com>
- Sender: news@cadsun.corp.mot.com
- Reply-To: shang@corp.mot.com
- Organization: Motorola, Inc., Software Research and Development, Rolling Meadows, IL. 60008
- References: <23659@alice.att.com>
- Distribution: comp
- Date: Mon, 14 Sep 92 13:49:16 GMT
- Lines: 16
-
- In article <23659@alice.att.com> ark@alice.att.com (Andrew Koenig) writes:
- > In article <1992Sep11.185505.17536@cadsun.corp.mot.com> shang@corp.mot.com
- writes:
- >
- > > That is why ISO C standard does not allow empty structure and zero
- > > number of array.
- >
- > No, ISO C does allow empty structures. It just says that they must
- > occupy a non-zero amount of memory.
- >
-
- Sorry. The SUN C in my computer does not allow empty structure. I shouldn't
- assume that it conformed to standard C. But if structure must be non-zero-
- sized, empty structure is really useless in C.
-
- David Shang
-