An hard code

1
2
3
main(_)
{_^448&&main(-~_);
putchar(--_%64?32|-~7[__TIME__-_/8%8][">'txiZ^(~z?"-48]>>";;;====~$::199"[_*2&8|_/64]/(_&2?1:8)%8&1:10);}

output:
1
2
3
4
5
6
7
!!  !!!!!!              !!  !!!!!!              !!  !!!!!!
!!  !!  !!              !!      !!              !!  !!  !!
!!  !!  !!              !!      !!              !!  !!  !!
!!  !!!!!!    !!        !!      !!    !!        !!  !!!!!!
!!      !!              !!      !!              !!  !!  !!
!!      !!              !!      !!              !!  !!  !!
!!  !!!!!!              !!      !!              !!  !!!!!!

what is the code means??
can someone help me understand?
This code means nothing. It shall not be compiled.
Is that some bitwise code?
Very obfuscated code. And yes it pretty much makes use of all the bitwise operators available. There is a for-loop in there somewhere don't be confused with the strings; in obfuscated code, anything could mean anything
Looks like some IOCCC entry
what is IOCCC?
http://www.ioccc.org/

Were there any "#define"-lines before this code?
It actually one of the winners of IOCCC of 2006. Entry named sykes2

http://stackoverflow.com/questions/15393441/obfuscated-c-code-contest-2006-please-explain-sykes2-c
This will help you to understand what happening here.
Last edited on
Topic archived. No new replies allowed.