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
Write some differences between an external iterator and an internal iterator?
Is java a c++?
Will this c++ program execute or not?
What is doubly linked list in c++?
What is the full form of stl in c++?
What is the v-ptr?
Why main function is special in c++?
What is const in c++?
What is a local variable?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
Write a program to find the reverse Fibonacci series starting from N.
What will the line of code below print out and why?
What is void pointer in c++ with example?
Can we inherit constructor in c++?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()