Home » C Program without main()

C Program without main()

by Online Tutorials Library

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 

You may also like