Can we compile a program without main() function in C Language?

Yes, we can compile, but it can’t be executed.

But, if we use #define, we can compile and run a C program without using the main() function. For example:

  1. #include<stdio.h>  
  2. #define start main  
  3. void start() {
  4.    printf(“Hello”);
  5. }