A General Overview of What Happens Before main()
When I first started programming with C, I always wondered what happens before main(). The post A General Overview of What Happens Before main() by Phillip Johnston explains behind the scenes of a C/C++ program.
In case the posts are not available anymore, here is the pdf version.