Small introspective program

Jay Skeer jay at hermix.UUCP
Sat Mar 16 18:07:29 AEST 1991


>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");}



More information about the Alt.sources mailing list