home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!mccall
- From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
- Subject: Re: Question to test general C knowledge
- Message-ID: <1992Dec28.161730.13653@mksol.dseg.ti.com>
- Organization: Texas Instruments Inc
- References: <1992Dec21.170917.17770@thunder.mcrcim.mcgill.edu> <wsP8VB1w165w@quest.UUCP>
- Date: Mon, 28 Dec 1992 16:17:30 GMT
- Lines: 16
-
- In <wsP8VB1w165w@quest.UUCP> 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.
-
- sizeof(char) is defined to be 1, so it doesn't matter if you have
- 16-bit chars or not; it still better give back a 1.
-
- --
- "Insisting on perfect safety is for people who don't have the balls to live
- in the real world." -- Mary Shafer, NASA Ames Dryden
- ------------------------------------------------------------------------------
- Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
-