Output. This is executed before main.
The main function serves as the starting point for program execution. It usually controls program execution by directing the calls to other functions in the program. A program usually stops executing at the end of main, although it can terminate at other points in the program for a variety of reasons.
The dynamic linker does lots of stuff before main when you run a program. The OS kernel also does a bunch. The entity that does "this stuff" is sometimes called "startup code". It sets things up, then calls main() , captures the return value from main() , and then does any cleanup.
After testing on msvc8, I found:
These three things are called before entering main().
My questions are:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With