Home »
MCQs »
C++ MCQs
Which of the following is/are used for dynamic memory allocation?
153. Which of the following is/are used for dynamic memory allocation?
- malloc
- calloc
- new
- free
Options:
- 1 and 2
- 1, 2, and 4
- 2 and 3
- 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++.