in C Plus Plus by
Can we compile a program without a main() function in C Programming?

1 Answer

0 votes
by

Yes, we can compile a program without main() function Using Macro.

E.g.

#include<studio.h>
#define abc main
int abc ()
{
printf("Hello World ");
return 0;
}
...