A program that prints the exact copy of the code
Its my teacher Mr.Joju John who told me about his
blog. I went through his blog and saw some beautiful
articles based on his hacking in ‘C’.I saw a program
which prints the exact replica of the code in the file.
Well i had heared the same problem during college days,
but then i wasn’t nearby the solution. Now it really
make me feel that the code is simple.
Here is the code:
char *p=”char *p=%c%s%c;main(){printf(p,34,p,34);}”;main(){printf(p,34,p,34);}
Have the fun.
February 23rd, 2006 in
Uncategorized
