Tuesday, August 17, 2010

C program without main() function

Actually the main() function is embedded in the following program, however it is just like hidding it.
Try it.... It gives no errors/warnings in TurboC till compilation... In some it runs well...


#include
#define decode(s,t,u,m,p,e,d)m##s##u##t
#define begin decode(a,n,i,m,a,t,e)
int begin()
{
printf("SanuzR World...");
}

No comments: