What's the order that objects in an array are destructed? Need assistance please explain it with example.
this answer will help you
In opposite order of construction: First constructed, last destructed.
In the following instance, the order for destructors will be a, a, ..., a, a:
Fred a ;