VOOZH
about
URL: https://www.geeksforgeeks.org/tag/new-and-delete/
⇱ new and delete Archives - GeeksforGeeks
👁 geeksforgeeks
Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
C++
3.8K+ articles
C++ Programs
1.5K+ articles
CPP-Basics
102+ articles
C Basics
78+ articles
C/C++ Puzzles
69+ articles
C-Dynamic Memory Allocation
26+ articles
Dynamic Memory Allocation
23+ articles
C++-new and delete
12+ articles
Deletion of array of objects in C++
Last Updated: 23 July 2025
Need for deletion of the object:To avoid memory leak as when an object is created dynamically using new, it occupies memory in the Heap Section.If objects are not deleted ...
read more
C/C++ Puzzles
C++ Programs
C++
C Basics
CPP-Basics
new and delete
Dynamic initialization of object in C++
Last Updated: 23 July 2025
In this article, we will discuss the Dynamic initialization of objects using Dynamic Constructors.Dynamic initialization of object refers to initializing the objects at a ...
read more
Technical Scripter
C++ Programs
C++
Technical Scripter 2020
cpp-constructor
C++-Constructors
Dynamic Memory Allocation
new and delete
What happens if we mix new and free in C++?
Last Updated: 23 July 2025
As we know that new is used to create memory dynamically and it is the programmer's responsibility to delete the memory location explicitly and it is deleted by using the ...
read more
C++ Programs
C++
C-Dynamic Memory Allocation
Dynamic Memory Allocation
C++-new and delete
new and delete