home *** CD-ROM | disk | FTP | other *** search
- From: jay@hermix.UUCP (Jay Skeer)
- Newsgroups: alt.sources
- Subject: Re: Small introspective program
- Message-ID: <218@hermix.UUCP>
- Date: 16 Mar 91 08:07:29 GMT
-
- >I said:
- >This one is self-recognizing. I am sure someone can do it shorter.
- >
-
- Well, matter of fact, *I* can. Paste the folowing lines together into
- one line. No spaces.
-
- j'
-
- -- start cutting and pasting on the next line --
- *a="*a=%c%s%c,b[256],c[256],q=34;main(){sprintf(b,a,q,a,q,q,q,q,q);get
- s(c);puts(strcmp(b,c)?%cno%c:%cyes%c);}",b[256],c[256],q=34;main(){spr
- intf(b,a,q,a,q,q,q,q,q);gets(c);puts(strcmp(b,c)?"no":"yes");}
-