How is memory managed in C++?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
Because C++ enables dynamic memory, the user must manually manage memory instead of relying on a garbage collector function to do it. The "new" and "delete" operators are used to dynamically allocate and deallocate memory, respectively.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nashiinformaticssolutions
C++ uses manual memory management with new and delete and also provides smart pointers like std::unique_ptr and std::shared_ptr.
| Is This Answer Correct ? | 0 Yes | 0 No |
is throwing exception from a constructor not a good practice ?
Difference between Constructors and static constructors?
When should we use multiple inheritance?
What is enum class in c++?
What are the defining traits of an object-oriented language?
Is nan a c++?
What is long in c++?
What is conditions when using boolean operators?
What are the manipulators in c++?
what kind of projects are suitable for c and c++
Define a constructor?
what is pulse code modulation?