From:	IN%"KENNEDY@Eisner.DECUS.Org"  "Terry Kennedy"  4-DEC-1998 15:26:19.65
To:	IN%"TERRY@spcvxa.spc.edu"
CC:	
Subj:	Notefile HOBBIES_AND_INTERESTS Note 269.1

Return-path: <KENNEDY@Eisner.DECUS.Org>
Received: from mailgate.spc.edu (root@mailgate.spc.edu)
 by spcvxa.spc.edu (PMDF V5.0-8 #D3397) id <01J4Y0PKE9K0000TEQ@spcvxa.spc.edu>
 for TERRY@spcvxa.spc.edu; Fri, 04 Dec 1998 15:26:13 -0500 (EST)
Received: from Eisner.DECUS.Org (SYSTEM@Eisner.DECUS.Org [192.67.173.2])
 by mailgate.spc.edu (8.8.8/8.8.8/SPC-3.0-NORELAY) with ESMTP id PAA13648 for
 <TERRY@SPCVXA.SPC.EDU>; Fri, 04 Dec 1998 15:26:00 -0500 (EST)
Received: from Eisner.DECUS.Org by Eisner.DECUS.Org (PMDF V4.2-12 #4291)
 id <01J4Y0P8PQLS003VVN@Eisner.DECUS.Org>; Fri, 04 Dec 1998 15:25:56 -0500 (EST)
Date: Fri, 04 Dec 1998 15:25:56 -0500 (EST)
From: Terry Kennedy <KENNEDY@Eisner.DECUS.Org>
Subject: Notefile HOBBIES_AND_INTERESTS Note 269.1
To: TERRY@spcvxa.spc.edu
Message-id: <01J4Y0P8QJJM003VVN@Eisner.DECUS.Org>
Organization: Digital Equipment Computer Users Society
X-VMS-To: kennedy
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT

        <<< EISNER::$2$DIA7:[NOTES$HIVOL]HOBBIES_AND_INTERESTS.NOTE;1 >>>
                           -< HOBBIES_AND_INTERESTS >-
================================================================================
Note 269.1                      Inscrutable Code                          1 of 2
EISNER::STRIEGEL "Alan Striegel Who #755"            69 lines   4-DEC-1998 10:59
                                  -< xmas.c >-
--------------------------------------------------------------------------------
/*     
LEAST LIKELY TO COMPILE SUCCESSFULLY:
  Ian Phillipps, Cambridge Consultants Ltd., Cambridge, England
 
  An appropriate program for December 25th, this consists primarily of
  calls to main() combined by a lot of the ternary conditional (?:)
  operators. Have you ever seen a more forceful return? The judges note
  that this program looked like what you would get by pounding on the keys
  of a type writer at random.
 
  Note -- I have made a minor correction (for spelling) to line 48, where I
  added a missing comma at column 59. I also added the #include <stdio.h>
*/

#include <stdio.h>
main(t,_,a)
char *a;
{
        return!
0<t?  /* Ternary block #1 start */

t<3?  /* Ternary block #2 start */

main(-79,-13,a + main(-87,1-_, main(-86, 0, a+1 ) +a)):
1,

t<_?
main(t+1, _, a )
:3,

main ( -94, -27+t, a )
&&t == 2 ?_
<13 ?
 
main ( 2, _+1, "%s %d %d\n" )
 
:9:16:
t<0?
t<-72?
main( _, t,
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#;\
#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/+k#;\
q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){nl]!/n{n#'; \
r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\
\
n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c ;;\
{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\
#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/")
:
t<-50?
_==*a ?
putchar(31[a]):
 
main(-65,_,a+1)
:
main((*a == '/') + t, _, a + 1 )
:
 
0<t?
 
main ( 2, 2 , "%s")
:*a=='/'||
 
main(0,
 
main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry")
 
,a+1);}


