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 >
Wrap
Text File
|
1991-03-10
|
660b
|
21 lines
Newsgroups: comp.lang.c,alt.sources
From: olsen@casbah.acns.nwu.edu (Jeff Olsen)
Subject: Re: Small introspective program
Message-ID: <1991Mar10.231230.17301@casbah.acns.nwu.edu>
Date: Sun, 10 Mar 1991 23:12:30 GMT
In article <AB2MbsdCB6@s514.ipmce.su> leo@s514.ipmce.su writes:
> This is an introspective program in C.
>char*a="char*a=%c%s%c;main(){printf(a,34,a,34);}";main(){printf(a,34,a,34);}
> Do you know a shorter program?
sure...
*a="*a=%c%s%c;main(){printf(a,34,a,34);}";main(){printf(a,34,a,34);}
I tried it with MSC 6.0 and whatever the default cc is on a encore
multimax. GCC doesn't appear to like it, though.
Jeff Olsen
olsen@eecs.nwu.edu