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
What is pure virtual function? Or what is abstract class?
Difference between delete and free.
Explain data encapsulation?
How would you use the functions memcpy(), memset(), memmove()?
How do you establish an is-a relationship?
What is the difference between a declaration and a definition?
what is multi-threading in C++?
What are signs of manipulation?
What are virtual functions in c++?
Is linux written in c or c++?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
What are containers in c++?
What are the 3 levels of programming languages?
What is the basic concept of c++?
Why do we use vector in c++?