How to under stand the C code

#include <stdio.h>

main(t,,a)
char *a;
{return!0<t?t<3?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;# ){n\
l]!/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(a[31]):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);}

That is obfuscated code with a recursive call to main(). It is deliberately messed up to be "funny". In short, it is not worth the effort to figure it out.

Plus, compilers wil generate lots of warnings. Code compiled with warnings is code that works thru coincidence.

It may not be worth the effort, but it is pretty good. It compiled on my gcc 3.4.6 on Solaris 10 without any warnings and it prints the twelve days of Christmas.

Cheers

Now it's clear why your nickname is brain_full... :rolleyes:

Thought it was just a rubbish code designed to 'distract' people... amazing!!!! really!!! :smiley: