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 a base class?
What do you mean by volatile and mutable keywords used in c++?
What is the difference between prefix and postfix versions of operator++()?
When do we use copy constructors?
What are signs of manipulation?
In what situations do you have to use initialization list rather than assignment in constructors?
What are vtable and vptr?
Will c++ be replaced?
What are c++ tokens?
What is setw manipulator in c++?
How do I download c++?
Can we define a constructor as virtual in c++?
How would you use the functions sin(), pow(), sqrt()?
what are Operators and explain with an example?
What is the use of endl in c++?