ProAnswers.org

In C another function used to execute the program instead of "main function"?

Actually the program starts executing from main function in c, but is there any function instead of using main function in the executing of a program.

Yes there can be a C program without a main function. but there is no Replacement for main() function.

When a C program is executed the main() is the function called by the run-time environment. But it is possible to write C program without main() function with some trick.

#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(” hello “);
}