Here is source code of the C Program to display function without using the main function. The C program is successfully compiled and run on a Linux system. The program output is also shown below.
* C Program to display function without using the Main Function
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)
printf(" helloworld ");
Output: $cc pgm35.c $ a.out helloworld
Sanfoundry Global Education & Learning Series – 1000 C Programs.