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

The Simple program to print "Hello" without main() function.
Program :
#include<stdio.h>    
 #define start main    
void start() {    
   printf("Hello");    
}
Output :
Hello