Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.programming Subject: Re: Long winter evenings Date: Wed, 06 Nov 2019 04:58:18 -0800 Organization: A noiseless patient Spider Lines: 25 Message-ID: <86zhh9duvp.fsf@linuxsc.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="677c6b51f4e841f5ef03e106670d3db1"; logging-data="17287"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qskO5E9oNJVOEkbifzpEH3itJHd1SD+I=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:iY675WYyqO1EOQTfG8ZIXO4n48w= sha1:ucrRA+OMToSMNrDzYoqEfsQu8ts= Xref: csiph.com comp.programming:10288 Richard Heathfield writes: > I have just written a program in C, which for reasons that will remain > shrouded in the mists of wossname I wanted to be as short as > possible. The program solves a highly specific and relatively > antiquated problem. > > Now that the nights are drawing in, some of you might be at a loose > end and wish for something to help you pass the time. > > So here's the puzzle, which is in two parts: > > (1) What, *exactly*, does the program do? That is, what is the > significance of the printed result? > > (2) Is there a way to make the program shorter, without compromising > its rigorous adherence to ISO C90? [...] There is a simple way of shortening the program that applies to all the variations I have seen posted. Hint: I don't make the rules, I just follow them. (In my own defense let me say I think this idea is easier to figure out than question (1) above.)