Q. Which of the following is used to handle dynamic memory allocation in C++?

  • (A) new and delete
  • (B) malloc and free
  • (C) alloc and dealloc
  • (D) dynamic and free
πŸ’¬ Discuss
βœ… Correct Answer: (A) new and delete
Explanation: 'new' and 'delete' are used to allocate and deallocate memory dynamically in C++.
Explanation by: Vinay
'new' and 'delete' are used to allocate and deallocate memory dynamically in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
84%
Success Rate