To run C program without using main function

To run C program without using main function

Code
#define begin main
void begin()
{
printf("hello world");
getch();
}
Code
Output:-
hello world


C is a general-purpose programming language initially developed by Dennis Ritchie between 1969 and 1973 at AT&T Bell Labs.
C is a procedural language.
C is a high-level programming language that was developed in the mid-1970s. It was originally used for writing Unix programs, but is now used to write applications for nearly every available platform. Compared to most previous languages, C is easier to read, more flexible (can be used for a wide variety of purposes), and more efficient at using memory.

Comments