S
ssubbarayan
Gurus,
One of my friend mailed me this sample piece of code:
#include <stdio.h>
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;
}
I compiled the above program with visual studio and got a map of india
printed on the output screen.
I am underloss to understand how this program works.This seems cryptic
to me.Iam wondering whether those char in for loop of (b=c=10;a=....)
is ascii char?
This is not definitely a homework as some might think.Jus for my
curiosity would like to know abt this.
Advanced thanks for all your replys,
Regards,
s.subbarayan
One of my friend mailed me this sample piece of code:
#include <stdio.h>
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;
}
I compiled the above program with visual studio and got a map of india
printed on the output screen.
I am underloss to understand how this program works.This seems cryptic
to me.Iam wondering whether those char in for loop of (b=c=10;a=....)
is ascii char?
This is not definitely a homework as some might think.Jus for my
curiosity would like to know abt this.
Advanced thanks for all your replys,
Regards,
s.subbarayan