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 the best c++ book for beginners?
Is nan a c++?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
What is the difference between a declaration and a definition?
How do you differentiate between overloading the prefix and postfix increments?
Explain shallow copy?
How can we access protected and private members of a class?
Define a conversion constructor?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
Differentiate between structure and class in c++.
What are disadvantages of pointers?
What is virtual base class?
Is c++ a difficult language?
What are keywords in c++?
Why #include is used?