Path: utzoo!attcan!uunet!husc6!mailrus!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!uxd.cso.uiuc.edu!uxe.cso.uiuc.edu!mcdonald From: mcdonald@uxe.cso.uiuc.edu Newsgroups: comp.lang.c Subject: Re: programming challenge (silly) Message-ID: <225800140@uxe.cso.uiuc.edu> Date: 17 Mar 89 14:35:00 GMT References: <2102@jasper.UUCP> Lines: 19 Nf-ID: #R:jasper.UUCP:2102:uxe.cso.uiuc.edu:225800140:000:561 Nf-From: uxe.cso.uiuc.edu!mcdonald Mar 17 08:35:00 1989 >main(n,m){for(scanf("%d",&m);m>1&m<10;n*=m--); >printf(m-1?"error\n":"answer is %d\n",n);} May I ask: main(n,m){ This looks a bit odd - no declarations for n and m. Doesn't that make them "ints"? That is fine for n, BUT isn't the second argument to main a char * something[]? I would suspect that this example would crash in Technicolor flames as often as not. >How about some beautiful elegant self-documenting C contests instead of >portmanteau obfuscatory unreadable ones? To which I would like to add: 100% legal ANSI C (with no trigraphs :-) ).