Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!auspex!ams From: ams@auspex.UUCP (Allan Schwartz) Newsgroups: comp.misc Subject: Re: Silly programming problems Message-ID: <1188@auspex.UUCP> Date: 21 Mar 89 19:19:52 GMT References: <817@krafla.rhi.hi.is> Reply-To: ams@auspex.UUCP (Allan Schwartz) Organization: Auspex Systems, Santa Clara Lines: 16 In article <817@krafla.rhi.hi.is> frisk@rhi.hi.is (Fridrik Skulason) writes: >I am looking for some silly but difficult problems for use in a contest. >One example is the following: > > "write a one line C program that produces the source code > to itself when run." (seen before on this net): main(){char*a="main(){char*a=%c%s%c;printf(a,34,a,34);}";printf(a,34,a,34);} -allan -- Allan M. Schwartz ams@auspex.com +1 408 970-8970 {uunet,sun}!auspex!ams