What is the use of new and delete operator in C++ 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the International Criminal Court, Lives in The Hague, Netherlands.
C++ supports dynamic allocation and deallocation of objects using the new and delete operators. These operators allocate memory for objects from a pool called the free store. The new operator calls the special function operator new, and the delete operator calls the special function operator delete.
2023-05-13 10:25:53
评论(499)
Helpful(122)
Helpful
Helpful(2)

Julian Davis
QuesHub.com delivers expert answers and knowledge to you.
C++ supports dynamic allocation and deallocation of objects using the new and delete operators. These operators allocate memory for objects from a pool called the free store. The new operator calls the special function operator new, and the delete operator calls the special function operator delete.