adplus-dvertising
frame-decoration

Question

When is the destructor of a global object called?

a.

Just before end of program

b.

Just after end of program

c.

With the end of program

d.

Anytime when object is not needed

Answer: (a).Just before end of program

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. When is the destructor of a global object called?