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

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: C weirdos
  5. Message-ID: <9236505.7445@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <dsembr01.725056046@starbase.spd.louisville.edu> <1992Dec29.040142.25385@nmsu.edu> <1992Dec29.143058.14613@osf.org>
  9. Date: Tue, 29 Dec 1992 18:42:08 GMT
  10. Lines: 30
  11.  
  12. daniel@juliet.osf.org (Daniel Dardailler) writes:
  13.  
  14. >Does anybody know if there is a specific news group for all the
  15. >little useless C programs that does nothing but funny C hackery.
  16.  
  17. comp.lang.c is alright for that sort of thing, IMHO.
  18. I suppose that the next best alternatives are alt.hackers and
  19. alt.religion.computers, but they don't really sound quite appropriate.
  20.  
  21. >(one example:    
  22. >    main(a){a="main(a){a=%c%s%c;printf(a,34,a,34);}";printf(a,34,a,34);}
  23. > the smallest auto-print program)
  24.   ^^^^^^^^^^^^
  25.  
  26. How can you call that "the smallest"?
  27. The *smallest* self-printing program is an empty file, which is
  28. self-reproducing in many languages. 
  29.  
  30. Perhaps you meant the smallest *C* program? Well *my* system's standard
  31. library contains a default main() that just does a "return 0;",
  32. so an empty file is a self-reproducing C program on *my* system.
  33.  
  34. Perhaps you meant the smallest *portable* C program?
  35. ... no, that can't be right, because your example wasn't portable!
  36.  
  37. -- 
  38. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  39. This .signature virus is a self-referential statement that is true - but 
  40. you will only be able to consistently believe it if you copy it to your own
  41. .signature file!
  42.