home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18597 < prev    next >
Encoding:
Text File  |  1992-12-20  |  774 b   |  27 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!mcsun!julienas!jussieu!trot!fred
  3. From: fred@trot.ibp.fr (Frederic PETROT)
  4. Subject: Re: Question to test general C knowledge
  5. Message-ID: <1992Dec18.093717.7661@jussieu.fr>
  6. Sender: news@jussieu.fr (Le Facteur)
  7. Nntp-Posting-Host: trot.ibp.fr
  8. Organization: Laboratoire MASI, Paris, France
  9. References: <1992Dec16.231449.22903@cs.uow.edu.au> <rfries.150@sceng.ub.com> <rfries.151@sceng.ub.com>
  10. Date: Fri, 18 Dec 1992 09:37:17 GMT
  11. Lines: 14
  12.  
  13. d_north@ondec.lonestar.org (David G. North, CCP) writes:
  14. >Or better yet, what is the type and value of the following expression:
  15. >  "this is a test"[4]
  16.  
  17. try this one (due to a friend of mine):
  18.  
  19. main()
  20. {
  21.    printf("%c", unix["abc"]);
  22. }
  23.  
  24. on a unix system, for sure! (no include file needed)
  25.  
  26. Fred.
  27.