Which of the following is/are used for dynamic memory allocation?

153. Which of the following is/are used for dynamic memory allocation?

  1. malloc
  2. calloc
  3. new
  4. free

Options:

  1. 1 and 2
  2. 1, 2, and 4
  3. 2 and 3
  4. All 1,2,3, and 4

Answer: D) All 1,2,3, and 4

Explanation:

All the given function names and operators are used for dynamic memory allocation in C++.

Comments and Discussions!

Load comments ↻






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