Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pyuxv.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!pyuxww!pyuxv!cim1 From: cim1@pyuxv.UUCP (G. Bogatko) Newsgroups: net.lang.c,net.sources,net.micro.pc,net.unix-wizards Subject: Disgusting Code Message-ID: <168@pyuxv.UUCP> Date: Thu, 6-Feb-86 09:07:09 EST Article-I.D.: pyuxv.168 Posted: Thu Feb 6 09:07:09 1986 Date-Received: Sun, 9-Feb-86 04:26:45 EST Organization: AGS Computers Lines: 25 Xref: watmath net.lang.c:7791 net.sources:4300 net.micro.pc:6839 net.unix-wizards:16687 In music_land, there exists the "Max Reger Society". Once a year, they gather together and give out an award to the person who can write the most revolting chord progression while still maintaining even the smallest link to the syntax of tonal music. Why don't we do the same thing, and have a "Most Disgusting Code" award. The rules are simple. Just produce your favorite bit of un-maintainable, or un-readable code. (something that would be too much for the puzzle book). Obviously, it must compile. Besides being a goof, all of us might also learn some more of the inner workings of C. Here, to start the ball rolling, is my entry. /* nasty.c */ main() { int a; printf("%s me\n",(a=getchar()-48)<4?&(a["\0\005\015\022"]["help\0abandon\0save\0lose"]):"wrong"); } George Bogatko