When the program starts, the start or _start function is _start . The definition of this function is included in the library, which is usually automatically linked. In a standard C program, it performs some startup function and then calls your main function.
What happens in a standard C program, but you can use WinMain instead, which is not standard. If main not, but WinMain is, it will call WinMain instead of the corresponding parameters.
Thus, there is no need to have a main function; WinMain serves this purpose, not main .
source share