Path: utzoo!utgpu!cs.utexas.edu!usc!randvax!ucla-an!hermix!jay 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 References: <1991Mar10.231230.1301@casbah.acns.nwu.edu> <1991Mar13.001423.5194@Think.COM> <4963@goanna.cs.rmit.oz.au> <217@hermix.UUCP> Followup-To: alt.sources Organization: Mark V Systems, Ltd., Encino, Ca Lines: 13 In-reply-to: jay@hermix.UUCP's message of 15 Mar 91 21:22:34 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");}