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 c++ an integer?
Write a corrected statement in c++ so that the statement will work properly. x + y=z;
What is a lambda function c++?
Can I learn c++ in a week?
The "virtual" specifier in a member function enables which one of the following? a) Monmorphism b) Late binding c) Metamorphism d) Solomorphism e) Inheritance
What is the latest c++ version?
How const int *ourpointer differs from int const *ourpointer?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What do you mean by funtion prototype?
What is this pointer in c++?
What is a literal in c++?
how many trys can we write in one class