Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Execute C Program Without main() Function

c programs

how to execute C program without main() function. If you want to execute any c program without using the Main() function, then you can use the #define start main.

Execute C Program Without main() Function

Copy the below C program and execute it with the help of c compiler to see the program output.

#include    
#define start main   

void start()
{
   printf("Hello world!");
}  

Below is the output of above program.

Hello world!

The post Execute C Program Without main() Function appeared first on FreeWebMentor.



This post first appeared on Programming Blog Focused On Web Technologies, please read the originial post: here

Share the post

Execute C Program Without main() Function

×

Subscribe to Programming Blog Focused On Web Technologies

Get updates delivered right to your inbox!

Thank you for your subscription

×