geeksforgeeks
  • Courses
  • Tutorials
  • Interview Prep
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
Similar Topics
Web Technologies32.1K+ articles
DSA20.4K+ articles
C++3.8K+ articles
C++ Programs1.5K+ articles
CPP-Basics102+ articles
C Basics78+ articles
C/C++ Puzzles69+ articles
C-Dynamic Memory Allocation26+ articles
Dynamic Memory Allocation23+ articles
C++-new and delete12+ articles

new and delete

3 posts
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
GeeksforGeeks
location
Corporate & Communications Address:
A-143, 6th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
location
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play StoreGFG App on App Store
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Job-A-Thon
  • Blogs
  • Nation Skill Up
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • Interview Preparation
  • Software and Tools
  • Courses
  • ML and Data Science
  • DSA and Placements
  • Web Development
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • Trending Technologies
  • Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
  • Preparation Corner
  • Interview Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved