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 searching? Explain linear and binary search.
What is private inheritance?
What is unary operator? List out the different operators involved in the unary operator.
Write a program using display() function which takes two arguments.
Difference between Abstraction and encapsulation in C++?
Are vectors faster than arrays?
What are the unique features of C++.
Explain how to initialize a const data member.
What is searching?
Write a program to add three numbers in C++ utilizing classes.
Does a derived class inherit or doesn't inherit?
Can create new c++ operators?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What is the basic difference between C and C++?
Explain the difference between realloc() and free() in c++?