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