home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!kirk!ptcburp!michi
- From: michi@ptcburp.ptcbu.oz.au (Michael Henning)
- Subject: Re: Question to test general C knowledge
- Message-ID: <1992Dec24.000118.20879@ptcburp.ptcbu.oz.au>
- Organization: Pyramid Technology Corporation
- References: <1992Dec21.170917.17770@thunder.mcrcim.mcgill.edu> <wsP8VB1w165w@quest.UUCP>
- Date: Thu, 24 Dec 1992 00:01:18 GMT
- Lines: 18
-
- kdq@quest.UUCP (Kevin D. Quitt) writes:
-
- >mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
- >> sizeof(4["this is a test"])
- >> must produce 1, or your compiler's broken.
-
- > Either that, or you've got 16-bit chars.
-
-
- It doesn't matter how many bits you have in a char, sizeof(char) is always 1,
- by definition (Section 3.3.3.4 of the ANSI C standard).
-
- Michi.
- --
- -m------- Michael Henning +61 75 950255
- ---mmm----- Pyramid Technology +61 75 722475 FAX
- -----mmmmm--- Research Park, Bond University michi@ptcburp.ptcbu.oz.au
- -------mmmmmmm- Gold Coast, Q 4229, AUSTRALIA uunet!munnari!ptcburp.oz!michi
-