Most unreadable code I'v ever seen
-
Look at the code below and try to tell me what it does :) Note, that you can compile and run it to see. From the first sight this is just a garbage, but dig a bit inside, you will see that the code is fine and "logical".
//wow.c - compile and run
#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;# \
){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);
};Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
I dont understand what the big deal is, all my code looks like that..:confused: /Magnus
- I don't necessarily agree with everything I say
-
I dont understand what the big deal is, all my code looks like that..:confused: /Magnus
- I don't necessarily agree with everything I say
LMAO, I guess you gonna be the second "Beautiful Mind" :) (movie) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
I hope I will never have to correct or update something you wrote :rolleyes: The one who isn't misanthropist when 40 years old never loved human kind Qui n'est pas misanthrope à 40 ans n'a jamais aimé les hommes Nicolas De Chamfort (1740-1793)
-
12 days of Christmas...
"When the only tool you have is a hammer, a sore thumb you will have."
You knew that! You knew that! :) :) :) :-D Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
You knew that! You knew that! :) :) :) :-D Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
nah, just did a search on google for one of the variable names :) http://www.google.com/search?sourceid=navclient&q=fxntdCeghiry[^]
"When the only tool you have is a hammer, a sore thumb you will have."
-
MSCV++ Says "AARRGGGHHH" --------------------Configuration: TestCppApp - Win32 Debug-------------------- Compiling... StdAfx.cpp Compiling... TestCppApp.cpp C:\Work\TestCppApp\TestCppApp.cpp(8) : error C2065: 't' : undeclared identifier C:\Work\TestCppApp\TestCppApp.cpp(8) : error C2065: '_' : undeclared identifier C:\Work\TestCppApp\TestCppApp.cpp(8) : error C2065: 'a' : undeclared identifier C:\Work\TestCppApp\TestCppApp.cpp(9) : error C2448: '' : function-style initializer appears to be a function definition C:\Work\TestCppApp\TestCppApp.cpp(9) : fatal error C1004: unexpected end of file found Error executing cl.exe. TestCppApp.exe - 5 error(s), 0 warning(s) Pete
The code is 'C', without plusplus part. Tomasz Sowinski -- http://www.shooltz.com
*** Si fractum non sit, noli id reficere. ***
-
Look at the code below and try to tell me what it does :) Note, that you can compile and run it to see. From the first sight this is just a garbage, but dig a bit inside, you will see that the code is fine and "logical".
//wow.c - compile and run
#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;# \
){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);
};Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
MSCV++ Says "AARRGGGHHH" --------------------Configuration: TestCppApp - Win32 Debug-------------------- Compiling... StdAfx.cpp Compiling... TestCppApp.cpp C:\Work\TestCppApp\TestCppApp.cpp(8) : error C2065: 't' : undeclared identifier C:\Work\TestCppApp\TestCppApp.cpp(8) : error C2065: '_' : undeclared identifier C:\Work\TestCppApp\TestCppApp.cpp(8) : error C2065: 'a' : undeclared identifier C:\Work\TestCppApp\TestCppApp.cpp(9) : error C2448: '' : function-style initializer appears to be a function definition C:\Work\TestCppApp\TestCppApp.cpp(9) : fatal error C1004: unexpected end of file found Error executing cl.exe. TestCppApp.exe - 5 error(s), 0 warning(s) Pete
You need to compile it as a .c file, not .cpp, since it uses C style function declarations!
-
Look at the code below and try to tell me what it does :) Note, that you can compile and run it to see. From the first sight this is just a garbage, but dig a bit inside, you will see that the code is fine and "logical".
//wow.c - compile and run
#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;# \
){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);
};Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
International Obfuscated C Code Contest website[^] Tomasz Sowinski -- http://www.shooltz.com
*** Si fractum non sit, noli id reficere. ***
-
MSCV++ Says "AARRGGGHHH" --------------------Configuration: TestCppApp - Win32 Debug-------------------- Compiling... StdAfx.cpp Compiling... TestCppApp.cpp C:\Work\TestCppApp\TestCppApp.cpp(8) : error C2065: 't' : undeclared identifier C:\Work\TestCppApp\TestCppApp.cpp(8) : error C2065: '_' : undeclared identifier C:\Work\TestCppApp\TestCppApp.cpp(8) : error C2065: 'a' : undeclared identifier C:\Work\TestCppApp\TestCppApp.cpp(9) : error C2448: '' : function-style initializer appears to be a function definition C:\Work\TestCppApp\TestCppApp.cpp(9) : fatal error C1004: unexpected end of file found Error executing cl.exe. TestCppApp.exe - 5 error(s), 0 warning(s) Pete
using VS6 open VS6 new file name wow.c copy and paste the above (newline after the #include) hit compile and VC6 will make a project for you - enjoy
Stupidity dies. The end of future offspring. Evolution wins. - A Darwin Awards Haiku
-
It never works in the first place so no one have to maintain it, i just throw it away and start over again. :) (A few monhts ago i actually wrote something i could compile!) /Magnus
- I don't necessarily agree with everything I say
-
Look at the code below and try to tell me what it does :) Note, that you can compile and run it to see. From the first sight this is just a garbage, but dig a bit inside, you will see that the code is fine and "logical".
//wow.c - compile and run
#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;# \
){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);
};Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
And the coolest part is that if you rot13 it, it's legal PERL. ;-) Tim Lesher http://www.lesher.ws
-
Look at the code below and try to tell me what it does :) Note, that you can compile and run it to see. From the first sight this is just a garbage, but dig a bit inside, you will see that the code is fine and "logical".
//wow.c - compile and run
#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;# \
){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);
};Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
Heh - this reminds me of a piece of code i wrote when i was bored at work one day, http://www.sietch.co.uk/helloworld2.cpp[^] you can guess what it does by the name of the file but it was fun to write :)
-
Look at the code below and try to tell me what it does :) Note, that you can compile and run it to see. From the first sight this is just a garbage, but dig a bit inside, you will see that the code is fine and "logical".
//wow.c - compile and run
#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;# \
){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);
};Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
:wtf: Jon Sagara Help me out here, Spock. I don't speak stupid.