home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3085 < prev    next >
Encoding:
Internet Message Format  |  1991-03-17  |  592 b 

  1. From: jay@hermix.UUCP (Jay Skeer)
  2. Newsgroups: alt.sources
  3. Subject: Re: Small introspective program
  4. Message-ID: <218@hermix.UUCP>
  5. Date: 16 Mar 91 08:07:29 GMT
  6.  
  7. >I said:
  8. >This one is self-recognizing.  I am sure someone can do it shorter.
  9. >
  10.  
  11. Well, matter of fact, *I* can.  Paste the folowing lines together into
  12. one line.  No spaces.
  13.  
  14. j'
  15.  
  16. -- start cutting and pasting on the next line --
  17. *a="*a=%c%s%c,b[256],c[256],q=34;main(){sprintf(b,a,q,a,q,q,q,q,q);get
  18. s(c);puts(strcmp(b,c)?%cno%c:%cyes%c);}",b[256],c[256],q=34;main(){spr
  19. intf(b,a,q,a,q,q,q,q,q);gets(c);puts(strcmp(b,c)?"no":"yes");}
  20.