home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3042 < prev    next >
Text File  |  1991-03-10  |  660b  |  21 lines

  1. Newsgroups: comp.lang.c,alt.sources
  2. From: olsen@casbah.acns.nwu.edu (Jeff Olsen)
  3. Subject: Re: Small introspective program
  4. Message-ID: <1991Mar10.231230.17301@casbah.acns.nwu.edu>
  5. Date: Sun, 10 Mar 1991 23:12:30 GMT
  6.  
  7. In article <AB2MbsdCB6@s514.ipmce.su> leo@s514.ipmce.su writes:
  8. >    This is an introspective program in C.
  9. >char*a="char*a=%c%s%c;main(){printf(a,34,a,34);}";main(){printf(a,34,a,34);}
  10. >    Do you know a shorter program?
  11.  
  12. sure...
  13.  
  14. *a="*a=%c%s%c;main(){printf(a,34,a,34);}";main(){printf(a,34,a,34);}
  15.  
  16. I tried it with MSC 6.0 and whatever the default cc is on a encore
  17. multimax.  GCC doesn't appear to like it, though.
  18.  
  19. Jeff Olsen
  20. olsen@eecs.nwu.edu
  21.