Home »
MCQs »
C++ MCQs
When we deallocate space for an object of class using the free() function then a destructor gets called?
204. When we deallocate space for an object of class using the free() function then a destructor gets called?
- True
- False
Answer: B) False
Explanation:
No, when we deallocate space for an object of class using the free () function then a destructor will not call, the destructor gets called when we use the "delete" operator for object destruction.