[Help] Obfuscated code printing a map !

7 views
Skip to first unread message

Ankit A

unread,
Apr 11, 2010, 12:25:13 AM4/11/10
to
This is an obfuscated piece of code printing the Map of India. On searching the net some logic was explained about the program.

#include <stdio.h>

int main()
{
int a,b,c;
int count = 1;
for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\
TFy!QJu ROo TNn(ROo)SLq SLq ULo+\
UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\
NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\
HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\
T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\
Hq!WFs XDt!" [b+++21]; )
for(; a-- > 64 ; )
putchar ( ++c=='Z' ? c = c/ 9:33^b&1);
return 0;
}

Attaching the Image also. The question I want to ask is, is this code made in the first go or is it like first the full logic was made and then trimmed down to this state to confuse the users ?

Can anyone give the idea how these kinds of code are made taking the example of "Hello World" !

Any kind of help or hint will be highly appreciated.

mapofindia.jpg



Thanks.
Ankit A

--
Giving away Free Domain and Hosting to share your knowledge with the world. UNIX, Programming, Web, Hacks and Computers. - http://bit.ly/bcvCtm
mapofindia.jpg
Reply all
Reply to author
Forward
0 new messages