Guess the output?
Whenever label is used in the program, and if control of the program is returned due to goto statements then destructor will be called for the objects declared under the label.
Since obj2 is declared under the MyLabel destructor is called for that object. One should notice that destructor is not called for obj because it is above the label statement. But destructor for obj will be called once at the end of the main function block
Consider the following statement,