104. Destructors-II

Question.2

A developer manually calls a destructor on a stack object:

void func() {
   Sensor s(5);
   s.~Sensor();  // Manual destructor call
   // ... more code ...
} // End of scope -- destructor called again!

What happens?

Need Help? Refer to the Quick Guide below

Select Answer