How to run c program without main function
Here you will know a tricky method to run c program without main function. We will get solution of this problem by using a macro that define main.
Example to run c program without main function
1 2 3 4 5 6 | #include<stdio.h> #define try main int try() { printf("\nProgram run without main function. "); } |
Output
Program run without main function.
Check out our other C programming Examples