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?

  1. True
  2. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.