I see this interesting question here asking for the possibility of a program without main()
. There, I saw eon giving one answer as follows, which works well in C/C++.
#include<stdio.h>
#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(" hello ");
}
Can someone explain how the above code works? Isn't really there a main()
here or just hiding it from our eyes archly?