Thompsons self reproducing program

rees at apollo.UUCP rees at apollo.UUCP
Wed Aug 22 03:21:28 AEST 1984


Oh come on.  We've been through this before.  As far as I know, the shortest
self-producing program in C is the one submitted by Berry Kercheval at Zehntel.
It's 101 bytes.  Here it is:

main(){char q=34,n=10,*a="main(){char q=34,n=10,*a=%c%s%c;printf(a,q,a,q,n);}%c";printf(a,q,a,q,n);}



More information about the Comp.sources.unix mailing list