Saturday, April 10, 2010

[Cpp-Programming] [Help] Obfuscated code printing a map !

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

--
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com.
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en.

0 Comments:

Post a Comment

<< Home