How to write a C program without using main()?

We can write a C program without using main(), but we need to use the #define preprocessor directive.

Here is a simple C program without using main().

#include<stdio.h>     
#define begin main
void begin()
{
printf("Advance Computing\n");
}

To contribute :

” If you like Advance Computing and would like to contribute, you can  mail your article to “computingadvance@gmail.com”. You will get credit as your name , email id, designation with article on this blog. “

Leave a Reply