Javatpoint Logo
Javatpoint Logo

C Program without main() function

We can write c program without using main() function. To do so, we need to use #define preprocessor directive.

Let's see a simple program to print "hello" without main() function.

Output:

Hello
Next TopicC Programs


Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA