C++ supports automatic garbage collection?

19. C++ supports automatic garbage collection?

  1. True
  2. False

Answer: B) False

Explanation:

C++ does not support automatic garbage collection. Here we need to free dynamically allocated memory using free() or delete. Otherwise, it may cause memory leaks.

Comments and Discussions!

Load comments ↻






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