wu :: forums
« wu :: forums - Obfuscated Code »

Welcome, Guest. Please Login or Register.
May 19th, 2024, 6:07am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: william wu, Grimbal, SMQ, ThudnBlunder, towr, Icarus, Eigenray)
   Obfuscated Code
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Obfuscated Code  (Read 1044 times)
John_Gaughan
Uberpuzzler
*****



Behold, the power of cheese!

5187759 5187759   john23874   SnowmanJTG
WWW Email

Gender: male
Posts: 767
Obfuscated Code  
« on: Mar 2nd, 2004, 8:19am »
Quote Quote Modify 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

Email

Re: Obfuscated Code  
« Reply #1 on: Mar 5th, 2004, 3:38am »
Quote Quote Modify Modify Remove Remove

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
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board