How to make a program in C and C++ without any main() function
Here is an example of C and C++ program which run without main() function .
#define main my // macro declaration
printf("Hello C Language");
The above code runs because we defined main as my and at the time of compilation "my" is interchanged to "main".
Post a Comment