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
Which one is a preferred language C or C++? Why?
Why do we use classes in c++?
What are the characteristics of friend functions?
What does it mean to declare a destructor as static?
What is increment operator in c++?
What is #include c++?
What are files in c++?
Difference between delete and free.
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
Write a recursive program to calculate factorial in c++.
Should I learn c or c++ first?
What is the full form of ios?
What is fixed in c++?
Why cout is used in c++?
Can you please explain the difference between static and dynamic binding of functions?