Author |
Topic: Obfuscated Code (Read 1044 times) |
|
John_Gaughan
Uberpuzzler
Behold, the power of cheese!
Gender:
Posts: 767
|
|
Obfuscated Code
« on: Mar 2nd, 2004, 8:19am » |
Quote Modify
|
What does this C program do? Are you able to figure out the answer without running it first? Code:#define w($1) printf("%d\n",$1) int main(){int x=1,y=4,z= 2;w(y-z-x);for(x=y/z- x,z*=(x+x)*y;(x<<= y>>2)&&z;z --)w(x); return 0;} |
|
|
|
IP Logged |
x = (0x2B | ~0x2B) x == the_question
|
|
|
qewrty
Guest
|
print multiples of 4 starting from 1, 4, 16 and so on upto 4^8 I think... I am not sure if $1 is a valid pre-processor token though... so I am going to run it now and check my answer.
|
|
IP Logged |
|
|
|
|