Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » What is the difference between the memory management in C and C++?
Re: What is the difference between the memory management in C and C++? [message #51118 is a reply to message #34713] |
Tue, 29 January 2019 13:10 |
nisha.kale1122
Messages: 1 Registered: January 2019
|
Junior Member |
|
|
In C, you pretty much have to manage memory on your own. Garbage and dangling references are found in almost every reasonably sized C program.
It becomes hard to reason about ownership and lifetime with dynamic allocations for most programmers.
In idiomatic modern C++, memory management is never done by the application programmer. There are very few cases where you need to use new, delete, malloc() etc.
Java developer
|
|
|
Goto Forum:
Current Time: Mon Apr 29 03:09:04 CEST 2024
Total time taken to generate the page: 0.02708 seconds
|