During the deallocation of dynamically allocated memory for an object using the 'free()' function destructor gets called?

161. During the deallocation of dynamically allocated memory for an object using the "free()" function destructor gets called?

  1. Yes
  2. No

Answer: B) No

Explanation:

No, the "free()" function does not call the destructor while the "delete" operator call destructor during the deallocation of dynamically allocated memory for an object.

Comments and Discussions!

Load comments ↻






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