Answer Posted / hrpynux@gmail.com
Use the malloc() function to allocate memory in designated blocks and the new function to create a new function. To reallocate memory, the realloc() function is used. When finished, always include a free() function in order to free up the memory. If you used new(), use delete() to free up the memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you quickly find the number of elements stored in a static array?
What is the use of "new" operator?
What do you mean by overhead in c++?
Explain what data encapsulation is in c++?
How do we balance an AVL Tree in C++?
How do you flush std cout?
What are the restrictions apply to constructors and destructors?
Explain class invariant.
What is the difference between public, private, and protected access?
Explain the extern storage classes in c++.
What are the uses of static class data?
What are associate containers?
What do you mean by stack unwinding in c++?
Write a program to find the Fibonacci series recursively.
What is the default access level?