title: Does C++ call destructors for global and class static variables?
body: <p>From my example program, it looks like it does call the destructors in both the cases. At what point does it call the destructors for global and class-static variables since they should be allocated in the data section of the program stack?</p>