Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
nisha.kale1122 is currently offline  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.


 
Read Message
Read Message
Read Message
Read Message
Previous Topic: UDP Server/Client with Winsock
Next Topic: prototype not found
Goto Forum:
  


Current Time: Mon Apr 29 03:09:04 CEST 2024

Total time taken to generate the page: 0.02708 seconds