home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18931 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!mccall
  3. From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
  4. Subject: Re: Question to test general C knowledge
  5. Message-ID: <1992Dec28.161730.13653@mksol.dseg.ti.com>
  6. Organization: Texas Instruments Inc
  7. References: <1992Dec21.170917.17770@thunder.mcrcim.mcgill.edu> <wsP8VB1w165w@quest.UUCP>
  8. Date: Mon, 28 Dec 1992 16:17:30 GMT
  9. Lines: 16
  10.  
  11. In <wsP8VB1w165w@quest.UUCP> kdq@quest.UUCP (Kevin D. Quitt) writes:
  12.  
  13. >mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
  14. >> sizeof(4["this is a test"])
  15. >> must produce 1, or your compiler's broken.
  16.  
  17. >    Either that, or you've got 16-bit chars.
  18.  
  19. sizeof(char) is defined to be 1, so it doesn't matter if you have
  20. 16-bit chars or not; it still better give back a 1.
  21.  
  22. -- 
  23. "Insisting on perfect safety is for people who don't have the balls to live
  24.  in the real world."   -- Mary Shafer, NASA Ames Dryden
  25. ------------------------------------------------------------------------------
  26. Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
  27.