Home »
MCQs »
C++ MCQs
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?
- Yes
- 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.